Dear student,
The aim of the experiment is to prove that light is necessary for photosynthesis. Yes, plants can carry out photosynthesis only in the presence of sunlight. The chemical reactions that occur during photosynthesis are triggered in the presence of light. Hence, light is essential for photosynthesis.
Regards