This is absolutely not true in my experience. I've taken pay cuts on job hops twice in 41 years of full time employment: once to switch from stress analysis in aerospace to C programming, once after I took a voluntary layoff. The latter was a contract job, which doesn't mix well with getting divorced. Every other job hop has gotten me a substantial raise.