It’s certainly useful if you have more than six years to make up and can’t do it any other way, you need the cash to do it though, it can be hundreds of £££s per year to find.
I have 5 years to make up (I’m 57) I’m claiming ‘specified adult childcare credits’ from DDs Child benefit entitlement as I look after DGS, you have to claim every year, for the previous tax year , by post / download + print the form but it means I will have full state pension.
Anyone who was also a military spouse abroad can also claim missing years, I did it for 1986-89.
This stuff isn’t publicised, you really have to search for it.