You can have someone automatically added to one of your Memberships when they purchase a course.
*To avoid potential problems with your credit card processor charging two charges back to back (Course price + first Membership payment), make sure there's a time delay between the initial charge and the first membership payment. If necessary, roll the cost of the first Membership payment into the cost of the Course.