If your friend has an iCloud account, he or she can simply sign in to iCloud on their device and then enable iMessage. The phone number will automatically be registered, so to speak. At that point he or she needs to go to Settings - Messages - Send & Receive and then select the phone number.