Yes. You can use custom attributes for both data sources User Profiles and Azure AD. See Adding Custom Attributes to the Employee Details Pane article for more information.