No, this is a lie they tell you to stop you getting what you are worth.
Inflation happens regardless. Thus, you should be in a place of work that has yearly raises in line with inflation at the bare minimum. Otherwise next year the company is effectively reducing your salary.