Sometimes, sure, but not always. High-performance data infrastructure, for example, is a rarified skill set in practice, and the people that know how to do it have been doing it for years. If you have this skill and are good at it, you can make much better than typical FAANG wages because the demand so exceeds supply. But there are very few people with these skills generally and the supply of new people is not meeting that demand. You definitely can’t learn these skills in a short period of time, the skill set is very deep.
I’m using the above domain as an example because I work in it and see the calculus but there are many others. If the number of people that could do the above doubled tomorrow, they could be absorbed instantly by the demand. In a sense it is a market failure in that the demand signal is clearly there with pay to match but very few people with the necessary skills manifest.