integrating Communities & Directory with Membersip 2 Pro

Hi,

I want to use Membership 2 Pro to create a membership package that allows only its members to benefit from my Communities and Directory installation. In other words, I wish to install Communities and Directory plugins, but only allow certain members to access them, and I wish to use Membership 2 Pro for membership management.

Is that possible?

Thanks!

David