I believe it's possible but AI makes mistakes, and you'd need to understand those to "guide" it through the process.
In other words you actually need to be able to code in the first place.
Security would be another issue if you didn't understand what's being written, and what's missing.