Yes, and the qualifying years include the years when the individual is able to claim HRP - as hc points out.
So. from 2010, many females after reaching the age of 48 (18 yrs start work, 30 yrs working life or bringing up children) will have enough in the pot to 'earn' them the full Basic State Pension anyway.
Of course the Government may again change the 'rules' in future, but I remain convinced the money is best left in the individual's pocket until closer to retirement.
A short story for you - Mrs Buildersmate worked in her early 20s for 6 years before claiming back all the NI contributions prior to starting a family. Dire warnings were sounded by letter to us (this was in the days when one could do this). As it now works out, she still has the 30 years needed - and we still had the money that we needed badly all those years ago.