Membership 2 assign membership while sign up using custom sign up

Is there any option to add an user to a specific membership type while he/she is signing up using custom sign up page.