There is absolutely no problem with keeping your altcoins for years in a wallet as long as you take the necessary precautions to secure your wallet. Always remember to never store your coins in a wallet which you do not hold the private keys to as that means that your coins are not yours to keep safe. You should look into buying a hardware wallet if you are going to hold your coins for years as they are safer than online wallets.