If the Raspberry Pi is in your house then any site you visit (or any frames they embed or other resources they load) can still track you by IP.
If a Raspberry Pi self-hosted VPN gets you what you need, great, but it doesn't do the same things as a large VPN service where your traffic is mixed in with all the other users exiting from the same server.