This depends if you continue to pay pension contributions during your maternity/paternity leave.
If you choose to pay pension contributions you will continue to build up membership and benefits in this Scheme at the same rate you were doing before your maternity/paternity leave started. More information about paying contributions whilst on maternity/paternity leave is available in the Membership section on the NHS Pensions website.
If you do not continue to pay pension contributions then you will leave the Scheme and you should read the information about leaving the Scheme on our website.