Ever since the spinning loom, this claim has been made. It’s been made about the combine harvester, welding robots, computers, and now AI.
And it has never once been true as the improved productivity led to different jobs as human wants are pretty unlimited.
And the jobs eliminated of are jobs that today would be near impossible to fill, as the modern jobs are much better.
Next to nobody would take a job standing in a wheat field chopping it down with a knife on a stick. Yet people protested the combine to try and save them.
I don’t see why the programmer wouldn’t just be the AI’s overseer, in the same way a farm worker now drives a combine instead of slashing wheat by hand.