On most servers everyone who is already a member can generate an invitation, more info at https://fedi.tips/inviting-people-onto-mastodon-and-the-fediverse
On some servers the admin may have switched off user-generated invitations, in which case only the admin can generate them.
If you're unsure, ask the admin of the server you want to join 🙂