No, this should be in a FAQ because it's such a common misconception. In general relativity gravity works on ENERGY and MOMENTUM. Mass is a form of energy, but only one form; any form will work, even kinetic energy!
And light does carry energy and momentum even though its quantum, the photon, is massless. This has ben observed experimentally.