An OTP, or one-time password, is the short code an app sends to check your phone number. A free virtual number can receive it for you.
A virtual number is not inside a SIM card in your pocket. It is hosted online, and its messages are shown on a web page. You can use it from any device.
Ask for the code only once. Asking again and again can make an app block the number. If nothing comes in a few minutes, change the number.
For a single sign-up, yes. For accounts that send an OTP every time you log in, you need a number you keep. A private virtual number does that.