Yes, an employer can enforce a hair policy as long as it doesn't discriminate and is applied equally to all employees. However, it's important to note that policies must also respect cultural, religious, and medical considerations. Always consult the company's guidelines or human resources department if you have any questions or concerns about such policies.