Hi @DEV TEST
Yes, you need to have an O365 license to list mail, users with an O365 license will be automatically assigned an EXO mailbox.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.