Yeah, this works great.
1. Buy a domain, if normal people do it for squarespace sites they can do it here.
2. Pick any provider that lets you use a custom domain.
3. Forward gmail to your domain.
4. Congrats, now you have email that isn't tied to any specific company and can be moved at will.