If the current supply and demand stays the way it is eventually things will even out. Programmer salaries will stagnate as more people enter the field and other fields may have salaries go up if there are not enough candidates.
This process is very slow though. It’s not a very efficient market due to opaqueness and the fact that people don’t like to change jobs too much. A huge reallocation can take a generation or more.