You are assuming there can be no light without the Sun, or Moon, or other physical cause.
The LORD God is LIGHT.
Yes, God is light, but “darkness was upon the face of the deep” until He created light, then three days later He created the source of light.