Conceptually, this is correct, but you must account for the fact that some problems are so hard to explain in English and have so many restrictions and strict rules that you end up writing a much longer and much more brittle program.
In the end, you need to explain the real world problem as without it, the AI does not know what to do, however smart it is.