Sometimes, yes. For example, if you receive pension credit as a benefit, a higher state pension might cut your pension-credit income. So in this case it may not be worthwhile making voluntary contributions.
If you have a short life expectancy, you might find that any money you pay now is not matched by future pension payments you receive.
A higher state pension can also see your tax liabilities rise.