No. Employee Directory can not be installed on SharePoint on-premise version.
SharePoint Online and Microsoft Teams are supported for the installation of the web part.