Activating 2FA on your account greatly enhances its security, no matter how you retrieve your 2FA codes.
The most secure way to retrieve your security codes is via a dedicated authenticator application. However, some find it more practical to receive their codes via a text message (SMS).
If 2FA is already active on your account and you retrieve your codes in an authenticator application, but you would like to receive your codes via an automated phone call instead, we suggest you read the article How to change my 2FA method?