Not according to the bible.
Note Genesis 1:1 says: "In the beginning God created the heavens and the earth.
+"
This is the beginning of the universe.
Verse two then turns our attention to the earth and its preparation for human habitation. It is with regards to the earths preparation that God says "Let there be light".
Genesis 1: 2,3 Now the earth was formless and desolate,
* and there was darkness upon the surface of the watery deep,
*+ and God’s active force
*+ was moving about over the surface of the waters.
+3 And God said: “Let there be light.” Then there was light.
+
The sun was created along with all the other stars in verse one, "in the beginning". In verse two the light from the sun was not penetrating the "darkness" (Verse 2) that was enveloping the earth and so God said "Let there be light". Evidently God gradually bagan to remove the cause of the darkness that was enveloping the earth at this time so the the light from the sun could penetrate to the surface of the earth. Evidently this was diffused light because not until the fourth day could the source of the light, the sun, be seen in the then clear sky.
Genesis 1: 14-19 "Then God said: “Let there be luminaries
*+ in the expanse of the heavens to make a division between the day and the night,
+ and they will serve as signs for seasons and for days and years.
+ 15 They will serve as luminaries in the expanse of the heavens to shine upon the earth.” And it was so.
16 And God went on to make the two great luminaries, the greater luminary for dominating the day
+ and the lesser luminary for dominating the night, and also the stars.
+17 Thus God put them in the expanse of the heavens to shine upon the earth
18 and to dominate by day and by night and to make a division between the light and the darkness.
+Then God saw that it was good.
19 And there was evening and there was morning, a fourth day."
God put them in the expanse at this time in that by now he had fully cleared away the cause of the darkness. From a human perspective on the earth the luminaries could now be seen, as if now put in the sky.