Umm, let there be light?
Sure, light first, the heavens and the Earth and all that. That was the first day. The sun was created on the fourth day.
So the first three “days” were without a Sun.
MUST have been exactly 24 hours!/s