Yes, follow this doc:
https://learn.microsoft.com/en-us/exchange/permissions-exo/application-rbac
Essentially, you are going to create an Exchange Service Principal.(This points to the service principal in Entra)
Then create the recipient scope. ( This is the mailboxes or groups you want to restrict the service principal access to)
Then you assign that recipient scope and the allowed roles to the service principal.