Posts on Mastodon are not end-to-end encrypted. Do not share any sensitive information over Mastodon.Not saying that that's what happens on Mastodon instances, I don't know enough about it's operation to comment.
Mastodon has actually done some work towards that but I don't think it's useable yet, see https://github.com/mastodon/mastodon/pull/13820