Not sure what you are referring to. iMessage, does not send iMessages for activation.
click here ➜ Set up Messages on iPhone - Apple Support
and here ➜ If you can’t turn on or sign in to iMessage or FaceTime on your iPhone - Apple Support
If you mean the Two-Factor authentication code used when logging into an Apple Account, this is unrelated to iMessage at all, that can be sent through voice call if you have previously set up a trusted phone number for voice calls on your Apple Account.
click here ➜ Get a verification code and sign in with two-factor authentication - Apple Support
If you mean the activation SMS for iMessage, that's just an SMS sent to an Apple Server, you don't get those and there's no voice call option since there's no one on the other side to listen to those messages.