This is such a good and unique question.  I assume you are asking this question because of what we read about John in Luke 1:15, “For he shall be great in the sight of the Lord, and shall drink neither wine nor strong drink; and he shall be filled with the Holy Ghost, even from his mother’s womb.”

Let’s also read Luke 1:39-42, “And Mary arose in those days, and went into the hill country with haste, into a city of Juda; And entered into the house of Zacharias, and saluted Elisabeth. And it came to pass, that, when Elisabeth heard the salutation of Mary, the babe leaped in her womb; and Elisabeth was filled with the Holy Ghost: And she spake out with a loud voice, and said, Blessed art thou among women, and blessed is the fruit of thy womb.”  Verse 44 goes on with Elizabeth’s words, “For, lo, as soon as the voice of thy salutation sounded in mine ears, the babe leaped in my womb for joy.

Zacharias and Elizabeth were, of course, the parents of John the Baptist.  We further read in Luke 1:57-60, “Now Elisabeth’s full time came that she should be delivered; and she brought forth a son. And her neighbours and her cousins heard how the Lord had shewed great mercy upon her; and they rejoiced with her. And it came to pass, that on the eighth day they came to circumcise the child; and they called him Zacharias, after the name of his father. And his mother answered and said, Not so; but he shall be called John.”

How incredible was this event that this unborn child should leap in his mother’s womb when Mary approached Elizabeth with the unborn Jesus in her womb.  Elizabeth was filled with the Holy Ghost when Mary spoke.  John, we are told, was filled with the Holy Ghost while still in his mother’s womb.  How are we to understand this?  How could John be filled with the Holy Ghost even before he was born?  Does that mean that he was saved even before being born?  Let’s examine Luke 1:15 a little closer and see what we can learn from it. 

Luke 1:15 says, “For he shall be great in the sight of the Lord, and shall drink neither wine nor strong drink; and he shall be filled with the Holy Ghost, even from his mother’s womb.”

HE SHALL BE GREAT IN THE SIGHT OF THE LORD.  As the Lord’s forerunner, John was used greatly to announce Him to the world.  We read of John in Matthew 11:11, “Verily I say unto you, Among them that are born of women there hath not risen a greater than John the Baptist: notwithstanding he that is least in the kingdom of heaven is greater than he.” 

SHALL DRINK NEITHER WINE NOR STRONG DRINK. This is part of the vow of the Nazarite, so we can say that from the womb, John was designated to live the separated and devoted life of a Nazarite.  We read in Numbers 6:2-4, “Speak unto the children of Israel, and say unto them, When either man or woman shall separate themselves to vow a vow of a Nazarite, to separate themselves unto the LORD: He shall separate himself from wine and strong drink, and shall drink no vinegar of wine, or vinegar of strong drink, neither shall he drink any liquor of grapes, nor eat moist grapes, or dried. All the days of his separation shall he eat nothing that is made of the vine tree, from the kernels even to the husk.” 

HE SHALL BE FILLED WITH THE HOLY GHOST, EVEN FROM HIS MOTHER’S WOMB.  From this we learn that John was divinely designated or appointed to the office of the Nazarite and Forerunner and was qualified for it by all the communications of the Holy Spirit to this unborn baby. To be filled with the Holy Ghost, implies having the soul influenced in all its powers, with the enlightening, strengthening, and sanctifying energy of this person of the Godhead.  In the same sense, it was said of Jeremiah in Jeremiah 1:5, “Before I formed thee in the belly I knew thee; and before thou camest forth out of the womb I sanctified thee, and I ordained thee a prophet unto the nations.”

We also read about Paul, the apostle in Galatians 1:15-16, “But when it pleased God, who separated me from my mother’s womb, and called me by his grace, To reveal his Son in me, that I might preach him among the heathen…” 

Both of these examples refer to an actual fitting for the work they were called to do from birth by the influence of the Holy Spirit. 

John, Jeremiah, and Paul were chosen even before being born.  Yet, they were all sinners in need of salvation.  As we read in Romans 3:23, “For ALL HAVE SINNED, and come short of the glory of God.”  ALL have sinned, no exceptions.  ALL need salvation, no exceptions.  How about you, dear friend?  Do you realize you are a sinner in need of a Savior?  Do you want to be saved from the penalty of your sins and live with the Lord in glory forever?  Romans 10:9 tells us, “That if thou shalt confess with thy mouth the Lord Jesus, and shalt believe in thine heart that God hath raised him from the dead, thou shalt be saved.”  You can be saved right where you are if you simply put your faith in the Lord Jesus Christ.  (CC)  (577.2)