Short answer: yes. A VPN hides your IP address from the websites you visit. However, you will still have an IP address – but it will be an IP address from the VPN's server. That's what keeps you anonymous.
Hiding your IP isn't the last word in privacy though, as you still need to ensure you don't give personal data out online.