No, shouting at cats is not a good way to train your cat to stop a behavior. Cats understand very little English to start with, so will not understand what you are saying. Cats can detect changes in tone, and this is unsettling for them, but they struggle to link the change in tone of your voice to the behavior that was done.