It's worth checking with your tax office.
You can buy back tax years when you return, but it depends on your age and how many years you have already paid. In the last few years they have reduced the number of years you have to pay NI to qualify for full pension rights, IRC down from 38 to 30, but check with your local office they are usually helpful.