A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
Yes, you can do that. Its essentially the same thing, just a different interface:
https://learn.microsoft.com/en-us/microsoft-365/admin/setup/add-domain?view=o365-worldwide