No. Moreover, the cat will learn but not the lesson you intended to teach. Cats don't link "cause and effect," so if you punish a cat for jumping on a countertop, they don't link the punishment to the act but to you. What happens is the cat then learns to be fearful of you instead of learning to not jump up.