This is exactly right.
The goal is delivering a useful product to someone, which just requires secure enough, optimized enough, efficient enough code.
Some see the security, optimization, or efficiency of the code itself as the goal. They'll be replaced.
Except it wasn't and still isn't secure enough.
As long as AI can't make the code optimized and secure by itself, and these day it still can't, those people won't be replaced. And when they do get replaced there is no guarantee that the more "entrepreneur" population won't get replaced as well.