No, Professor Photon's logic is incorrect. Because during a solar eclipse, the sun remains as it is, only the path of the light rays coming from the sun is blocked by the moon. When the professor will reach nearby the sun there will not anything that can block the sunlight coming from the sun. Hence, he will surely burn out along with his rocket.