Common wisdom says that cat training is not possible. The reasoning is that cats do their own thing and have no interest what you would like them to do. There may be some truth to to that, but, cat training is not impossible. It may be hard to train a cat to do tricks, but even that is possible. You definitely can change your cat's behavior and improve your relationship with your feline pal.
Cats are smart beings, but kittys also have their own mind. If you are planning to train your cat and modify his behavior you need to either give him rewards he will appreciate or let the cat recognize the negative effects of the bad behavior.
You do not want your cat to associate bad effects with you. If he does he will be learning to avoid you and not the negative behavior. You will learn exactly how to accomplish this and much more to train your cat the right way.