You just need to verify your new domain in Microsoft 365 admin center. Then you will could use your new domain name for mailbox/account. (verify new domain in Office 365 is free)
For more detailed information you can have a look about this article: Add a domain to Microsoft 365
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.