yes, see e.g.

https://docs.joinmastodon.org/user/moving/

Or this short guide published yesterday

https://codingitwrong.com/2022/10/10/migrating-a-mastodon-account.html