Extra X a year for the rest of your working life? Yes.
Consider that some employers anchor salaries to previous salaries ala "we won't pay you more than Y more than your previous salary" - so any raise represents an increase in all future offers.
So despite the downsides, working for a couple of years under a new salary has essentially increased your worth in the eyes of the market.
Extra X a year for a couple of year? No.
Extra X a year for the rest of your working life? Yes.
Consider that some employers anchor salaries to previous salaries ala "we won't pay you more than Y more than your previous salary" - so any raise represents an increase in all future offers.
So despite the downsides, working for a couple of years under a new salary has essentially increased your worth in the eyes of the market.