Yes. If you reached or will reach state pension age after 5 April 2016, the current maximum you can buy is 16 years (excluding the current 2023/24 year). After 5 April 2025, you will only be able to top up the previous six years.
If you reached state pension age on or before 5 April 2016, you can also only top up a maximum of six years. However, the actual amount of voluntary NI contributions you can make depends on your circumstances and is likely to be much less than the maximum. Contact the Future Pension Centre to find out how many years you can buy and what it will add to your state pension. If you've already reached state pension age, you'll need to contact the Pension Service.