Yes, using a VPN to obtain an IP address from another location is generally legal. However, ensure you use the VPN service for legitimate purposes and abide by the terms of service.