Courspress and Membership Pro 2 Integration?

I'm about to build out a course that covers 3 months of time. But would like the people who paid for the course to be automatically enrolled into the "membership pro 2" area when they are done with their course. Is that a thing? Thanks.