A VPN connection will route all your internet connection through its own network, so all your interactions with internet will be with VPN IP address and this will keep your main IP address safe.