It would still be a separate account, but yes, seamless migration to a new instance could be a thing. There’s scripts for it already. OPs suggestion that you can just move between instances with the same account isn’t how the fediverse works.
If you just want to been on Pixelfed and Mastodon, your instance giving access to both would be the cleanest, best way.