Yes, you can use extensions in the integration for a contact. For more information, see Can I add a non-E.164 number to an internal contact? and Configure the Microsoft Teams integration.