Yes. No law in any country makes IP changing illegal. The process of changing the IP address with a proxy, VPN, or TOR is legal, but you should keep in mind that actions can be illegal.