Yes. Both options P1 and P2 include MDE for servers (full version or MDE P2). Windows and Linux servers (though Linux is MDFC P2 only).
For non-server devices, licensing is part of the M365 E3-E5 or equivalent per user.
https://learn.microsoft.com/en-us/azure/defender-for-cloud/defender-for-servers-introduction