Even that requires a degree of thinking in code that is only really possible from having written a lot of code.
The distinction between "what" to do and "how" to do it is only relative. I am directing it what to do, at the level that it can fill in the how. But its "how" keeps getting higher level / more abstract, and my "what" directions are commensurately higher level. Until we get to the point that the "what" is above my paygrade.