Redirection bases on membership

Hello!

Is it possible to redirect members to a specific page, based on their membership?

Example:
Membership-A-members redirect to website.com/membership-a
Membership-B-members redirect to website.com/membership-b

Thanks!