Most translations are a little misleading in Genesis 1:16. According to the Hebrew:
Genesis 1:16 “And God made two great lights; the greater light to rule the day, and the lesser light to rule the night, the stars.”
There is no reference to the moon in verse 16.
Genesis 1:14 “And God said, Let there be lights in the expanse of the heavens to divide between the day and the night. And let them be for signs, and for seasons, and for days and years.”