Never keep coins on an exhnage.
But sometimes you have to, especially if you're trading. There are ways of staying secure though, like 2-factor auth etc.
And there's a big difference between keeping your money on exchanges and online wallets, especially one like blockchain.info. Blockchain is very safe as long as you set up all the security features.