For service accounts, an Active Directory domain is required in SharePoint 2019 server for certain functionality, like SQL, ADDC deployments, etc.