Yes, a VPN established the internet connection through a private tunnel and hides your IP address. It also keeps your internet activity secret making it almost impossible for the attackers to intrude.