When God said, "let there be light" did he mean, the Earth's core?
For every star or planet is a light; and it is especially true, since the Earth's core is molten lava, an element that is very bright.
This idea supports itself because, God created everything else afterwards (the firmament, the seas, the earth, the heavens, the greater, and lesser lights).