AI does what you ask of it, so, just like when humans wrote the code by hand, some will take time to carefully build systems to validate their work and others will do anything to get the job done as quickly and lazily as possible. It is all but certain that some people will have AIs producing good, reliable code, with others producing mountains of garbage.
In the olden days some never learned, but those that did tried things, failed, and then build systems to prevent making the same mistakes again.
I don't see what's different today. Some will never learn, but of those who do they'll try things, fail, and then build systems to prevent making those same mistakes again.