Yes, although it is up to your employer whether the leave is paid or authorised unpaid leave. If the leave is paid pension contributions will be paid as normal but if the leave is authorised unpaid leave the contributions will be based on your salary prior to the unpaid period.

For more information on paying pension contributions during a period of authorised leave or a career break, please see the 'Authorised Leave and Career Breaks' Factsheet on the NHS Pensions website.