Pugs don't respond well to this type of treatment, and they can easily be discouraged if they are verbally chastised.
These sensitive dogs get their feelings hurt, and won't feel motivated to interact with you after such behavior.
Take special care when handling your pug, because these little dogs are delicate.