You can. This is known as vicarious liability.
Under the Equality act 2010 employers can be vicariously liable for an employee’s discriminatory acts and must take reasonable steps to prevent discrimination and harassment in the workplace. If you don’t have equal opportunities training and an equal opportunities policy in place, it may be quite difficult to demonstrate that you have taken reasonable steps.