Yes, God did create light initially. That you are correct about. It, however, doesn't say that he created the sun until later. And the sun is the operational divider of day and night for us in the practical sense. The sun is also that from which the plants draw light and thusly life. Whether God invented light before making the sun is irrelevant to the argument at hand. The problem you have to overcome is the absence of sunlight and insects both. You made a tragic leap at one and missed, the other still awaits. No sunlight = plants die. No bugs = plants cant procreate and the life ends. Anyway you cut it, the system is irreducibly complex and fails without the working parts.
Once God created time, he had to respond to time in a limited sense to intervene before what he'd thusfar accomplished fell to ruin. Working with time, God created plants, then within a few days created sunlight to nourish them and bugs to help them reproduce. Any longer than that would require an unstated further miracle or God reworking to make up for a mistake in "timing". The order of the items created tells us that God knew what he was doing in setting up the dependancies initially. The dependancies setup preclude any notion of days meaning millions of years.
Logic won't allow it.
Now, you can say "God can do what he wants" and offer that strawman argument. God, indeed can do what he wants. But, God doesn't lie and has already told us what he did. From a
scientific standpoint, Occum must be invoked to shave off the nonsense. The only reason this "millions of years" gap theory crap comes up is because science tried disproving
God by extension and as a result, wimps of so-called Christians who couldn't stand on the word of their God decided to compromise God's word just as Eve and Adam did.
They still haven't learned from the example of Eden even to the extent of believing God on how it was created.
Plants living on sunlight can't wait millions of years for sunlight, spanky. Nor can they wait millions of years for bugs to pollinate them.
Explain to me where it says god created the sun seperately from light? And after he created all things living?
And who is to say primordial plant life was wholly dependent on insects as you would suppose? Or that Insects where wholly dependent upon plant life?
I also know there is evidence of aquatic and subterranean plants that exist without photsynthesis or contact with insects.
Also I failed to mention that only a handful of plants rely upon bugs for propogation, mostly flowers. The rest of the plant world depends upon seasonal changes, winds and proper soil conditions.
Unless you are suggesting, trees, grasses and others can only grow with the help of bugs.