Test a web with SMS code

Is it possible to test a web workflow where the web send a code by SMS to continue?
Is there any possible way to test automatically this steps?
Using a real mobile phone and getting somehow this code to use it in the test?

Thanks in advance

This is the exact reason I’m trialing Katalon to see if this is possible. Does not seem as if you’ve received a response though.