If you get hacked than its your own fault. If you play smart and don't do anything stupid, you can avoid getting hacked and lose your money.
Exchanges do/can get hacked. So that is why everyone recommends not to store your coins on an exchange for a long time. And also always choose a very trusted exchange when trading coins.
It is just carelessness and total disregard to security of one's funds that makes someone fall a victim of hackers. There is so much that is going around regarding security and I just do not know why some people still fail to follow some pretty little security rules and then come putting the whole blame on the idea that security is a problem. Those who get hacked are just careless, plain simple.