Absolutely.
We have 2 mechanisms in place to allow you do this:
Leverage dynamic teams to assign users to a team based on their job title, location, and/or department
Check out this article for more information.
Sync from an identity provider (such as Azure AD, Okta, or another provider) via API
For more information on Azure AD, check out this article.
For more information on Okta, check out this article.
Please note this option is only available to Enterprise customers at this time.