This strongly depends on the company. In high growth industries this is absolutely true, in low-growth industries/companies its somewhat debatable. I suspect that this is why software salaries were tightly correlated with tech growth for the last 3 decades. The 90s, and 2010s were great times to be a software engineer - but average salaries were more than cut in half during the oughts.