Yes and yes.
The key is, don't interact with the AI like you are both coders. The AI is a coder. You are now a manager, product owner, and tester.
You design in your head and plan how it works function by function and object by object.
Once you see how the pieces fit have the AI code it one function and one object at a time. You can even have it write tests for the functions it just wrote. Have it write comments galore since you probably weren't commenting enough. (You just wrote it, it makes perfect sense to you.)
Now you test piece by piece and put it together yourself.