No. A VPN hides your identity but does not protect you from malware. Plus, piracy remains illegal regardless of VPN.