Science is just a tool mankind uses to try to figure out how the things happened.. But we also must remember, Creation is a miracle. So some things which God did may go contrary to science.
a good example is the stars. God said
14 Then God said, “Let there be lights in the firmament of the heavens to divide the day from the night; and let them be for signs and seasons, and for days and years; 15 and let them be for lights in the firmament of the heavens to give light on the earth”; and it was so.
God said these lights would be for signs and seasons, for days and years, To be used by mankind
Science says it would take millions of years for a stars light to the earth So the earth must be this age
Miracles say God created these for a purpose. so He has the power and might to create them in a way their light appears on the earth the DAY he created them, since he created them for this purpose.