No. A VPN hides your IP but does not protect against malware from the site itself. Also, using a VPN to commit copyright infringement may violate your VPN provider’s terms of service.