Yes. John was a Nazirite. This was actually prophecied multiple times prior to his birth. Let’s look where ..
LUKE 1:15 For he will be great in the sight of the Lord, and shall drink neither wine nor strong drink. He will also be filled with the Holy Spirit, even from his mother’s womb 16 And he will turn many of the children of Israel to the Lord their God. 17 He will also go before Him in the spirit and power of Elijah, ‘to turn the hearts of the fathers to the children,’
This word from the angel references Malachi 4:5. So this was the original prophecy. Two points to note from this passage. The reference to ‘drink’, (part of the vow), and the reference to Elijah - Elijah also being a Nazirite. And, John the Baptist came ‘in the same spirit as Elijah. A Jew familiar with Torah would instantly recognise this passage in Luke as being a reference to being set aside as a Nazirite.
MAT 17:11 Jesus answered and said to them, “Indeed, Elijah is coming first and will restore all things. [snip] 13 Then the disciples understood that He spoke to them of John the Baptist
Those who took the vow of the Nazirite were easily distinguishable. They lived separated, and via their ‘looks’. (A wild man). John lived in the wilderness, his wardrobe resembled Elijah’s. The Nazirite would, in effect, be taking on the sign of, as if living under the reproach (of God).
John was a Levite, Arguably John would have been in line to have even taken the role of High Priest. But (arguably, and using historical Jewish accounts) the Levitical priesthood had become so corrupted by this time that John turned his back on this ‘honour’, to dedicate his life to worshiping the [true] coming Messiah.