Yes, in most of the countries uses of a VPN service on your device is legal but in some countries, VPN services are restricted like Russia and China. So, while purchasing a VPN service, always check their availability in a certain country.