Yes. Professional indemnity insurance will cover the cost of any legal fees relating to a claim. It will also cover the costs of any compensation or settlement awarded, up to your limit of indemnity.