Can I link memberships to relationships automatically?
You can set type of relationship to be used for a membership type. So when a membership is purchased the contact will have relationship with the organization automatically and also will be set to inactive when membership is expired or cancelled.



You can also check documentation for more information at https://docs.civicrm.org/user/en/latest/membership/defining-memberships/ (search keyword - Relationship Type)