I see the thought process, but it's not universally true since you have to account for value the employee brings as well.
Consider a company with only 1 employee. That employee can create 1 widget per year which sells for $100,000. The market for widgets is very elastic and at price points above $100,000, the demand is zero. Overhead and cost of goods is $50,000.
In that case, the person's salary can't exceed $50,000 or else the company operates at a loss. Even if there is an extreme shortage of skilled workers who can do the job.