Restricting user from other employee records

HI, i just want to know if i can restrict user from other employee records

For example, if a user is a department head, when they access the employee records, only the employees from their department will be displayed.

You can add Department permissions in the User Permission DocType.
https://docs.erpnext.com/docs/user/manual/en/user-permissions