When is it okay to start disciplining ?

Madison

My son is 6 months old, he's starting to develop a wild personality 😳 which is cool to see. But sometimes he'll hit you...not out of anger though, he just gets excited or too happy and starts swings his arms around. I also try to teach him to pet the dog and cat nice instead of just take a grab at them. I try to tell him "no" or "easy" if he starts pulling my hair and stuff but again he's only 6 months old...i guess I was unsure of what age it's appropriate to start telling them things like "no" or discipling (not like spanking or anything just being firm that you shouldn't do something) any tips or suggestions would be appreciated ! Thank you :)