NO, He was NOT speaking TO Jesus, who was the the very WORD of God. When God "speaks" TO the WORD of God, He speaks to Himself, as in Isaiah 48:3:
I have declared the former things from the beginning; and they went forth out of my mouth, and I shewed them; I did them suddenly, and they came to pass.
And, in Isaiah 48:16:
Come ye near unto me, hear ye this; I have not spoken in secret from the beginning; from the time that it was, there am I: and now the Lord GOD, and his Spirit, hath sent me.
Clearly, the One described as the "speaker God", always stays in His own lane as the speaker. All the way through scripture, it is the speaker of God who is called "I am." That was the power of the phrase, "I am." God is a speaking and hearing God who created, made, formed, and established man with the ability to hear God's perfect WORD--always good, and to speak man's own mind--good or bad.
Rather, here in verse 3, God is typically associating that invisible WORD of God with the invisible "waters" of verse 2, exactly as John 1:4 describes Jesus, who was at that time of the beginning, the invisible eternal WORD of John 1:3-4
3) All things were made by him; and without him was not any thing made that was made.
4) In him was life; and the life was the light of men.
If this needs explaining, the phrase, "The heaven and the earth" is a joint definite direct object of the verb, created, as flagged and demanded by the particle, תאֵ (‘eth) preceding the word, hasshamayim (the heavens), together with the "enjoining" particle", תוְאֵ (ve’et or, and ‘eth) preceding the word, ‘erets (earth). So God created IT ALL in verse one and God described exactly what he had created in verse 2; "the waters" within one deep area of space--each having a commonly positioned outer "face".
Those waters were invisible gaseous-like matter that were "without form, and void"--exactly as we define the word gas:
Gas: A state of matter in which the molecules are practically unrestricted by cohesive forces. A gas has neither a definite shape, nor volume.
The Hebrew word translated as "waters" in Genesis 1:2 is the noun "mayim". It is very important to recognize that mayim is the Hebrew dual—an inherent twosome—of a primitive noun that is used in a singular sense. This dual-form word that is used in a singular sense is just like the noun phrase, "the heaven and the earth" of Genesis 1:1 that speaks of a single body containing two inherent parts or groups. The original Genesis 1:2 waters can and should be properly described as that single body of matter from which God, over a period of six days, made exactly two universally recognized classes of material things—earthly things and heavenly things—the twosome of this very special and respected Hebrew dual, "mayim".
On Day 2, He divided those waters into exactly two bodies of invisible gaseous waters--heavenly and earthly waters. Thereafter, on days three and four, He made ALL Worlds by those two bodies of invisible waters, respectively--both of which came from that ONE BODY OF WATERS OF VERSE 2. Compare with Hebrews 11:3:
Through faith we understand that the worlds were framed by the word of God, so that things which are seen were not made of things which do appear.
However, in Genesis 2:4 He more particularly INSTRUCTIVELY described those two tasks--the earthly bodies and the heavenly bodies--by inverting the phrase, "the heavens and the earth," because He made and formed the earth and it's several seas BEFORE He made and formed all the heavenly bodies.
These are the generations of the heavens and of the earth when they were created, in the day that the LORD God made the earth and the heavens. . . . (my emphasis)
Light is energy. God's first law of thermodynamics (the Conservation of Energy) discovered by man states:
Energy can neither be created nor destroyed. That is why God's perfect WORD declared in Isaiah 45:7:
I form the light and create darkness I make peace and create evil: I the LORD do all these things.
So that light in verse three was already created in verse 2 being in the waters. This is God's absolute science. God knows fact from theory.
Every type in scripture has an associated flaw that points out that it is merely a type. The waters were never specifically declared here to have been created--it is only understood from verse one that waters was the matter created. THEREFORE waters are not and were never actually the WORD of God, just merely a type, but a very important type.
ACCORDINGLY, In him--in the waters (the type)--in the WORD of God (the real thing)--was life; and the life was the light of men--that very light of verse 3. Jesus was that very light that had not been created, but rather was "made flesh"(in accordance with God's law of thermodynamics) in the world called earth under the law by those day 2 waters. Jesus was that very eternal WORD of God who claimed in John 9:5:
As long as I am in the world, I am the light of the world.
Parts of this answer are taken from my paper at: