It is possible to login into WordPress using your Active Directory/Office 365 credentials. We would leverage the Active Directory where the Office 365 identities are present and configure the LDAP Plugin with the Active Directory.
In case you are looking for auto-login into WordPress through AD credentials (in case access is within the domain), we have options to support that requirement as well.