Mimicking 2Fa with pro forms. Possible?

I have a bricks login form that needs to email a 2fa code before the user logs in.

So they enter their email and password and if that validates the form moves to step 2 and asks for a code that gets randomly generated and emailed to the user. User enters it, gets validated and logs in.

Is something like this possible with pro forms?

I know this isn’t actually 2fa in the real sense but could work for my use case.

Thank you.