do i dicipline because of social stigmas

I am really struggling right now with this “adorable” new phase that my 2-year-old is going through. He is a parrot! He retains and repeats things he hears. Of course its only the naughty things too. How does a 2-year-old know how to do…