That's where testing comes in, no?
Entering the programming field then becomes an iterative loop of you instructing an AI to generate code, generate tests and iterate / re-adjust until it does what you want.
"You" as in the next generations of programmers in a decade or two.