Assign membership on user role

Hi

I use a project management plugin that assigns the role cqpim_client when a client registers. Is it possible to have a Membership assigned automatically based on the user role?

Thanks in advance as always