Is there a way to make sure a user pays for the membership subscription plan he/she selected, before

Hello. Using the membership plug-in, a user who would like to sign up, is first presented with the subscription plan screen. After selecting the plan, the user registers, then pays. The problem is that as soon as the user submits the registration form, an account is created. Is there a way to prevent an account from being created until the payment is completed?