Not necessarily, no. ERC20 tokens can in some cases be hacked, however, they are 'hacked' in a way that is not the same way that websites or applications are hacked. As a result, it's important to make sure the team behind the ERC20 token you're buying is as well-rounded and trustworthy as possible.