Is light and carbon dioxide needed for photosynthesis?

Yes they are both needed for photosynthesis to occur.