No – you accrue holiday while off sick. See https://www.gov.uk/taking-sick-leave.
The relevant bit is:
“Statutory holiday entitlement is built up (accrued) while an employee is off work sick (no matter how long they’re off).
Any statutory holiday entitlement that isn’t used because of illness can be carried over into the next leave year. If an employee is ill just before or during their holiday, they can take it as sick leave instead.”
Only thing to be aware is have you been paid for the holiday you would have taken (instead of being paid sick pay, which might have been less)? If so, you’ve used the holiday. But this would usually be something you’d discuss and agree with your employer.
EDIT – sorry to hear about the accident, hope you’ve made a full recovery!