Confirm phone number?

Is there a way to request phone number confirmation before user registration? Like sending SMS with code and entering it on site.

I do this manually with 2FA. Just send them initially a code for them to type in. Then if they type in the correct code let them pass Essentially like a verification email.

Thanks, I see.