Iffy
I'm still iffy on AI.
Using it to generate code has, in all honesty been terrible. It'll just generate stuff that doesn't work, or uses libraries that don't actually work together.
But I have found (on home projects) that if I state something like. "I am trying to achieve X, here's the code samples I've tried" it'll point out quite accurately why my code is failing, and tends to give an alternative that (with tweaking) will resolve my issue, and it's actually been a boon for learning about less common coding techniques that are very handy.
All in all, it's nowhere near ready yet for general use, but as a lookup tool I've found it handy.
Just rather than treating it as a code writing tool, treat it as a reference tool and keep using your head. Only problem I'm seeing right now, is less skilled coders / new coders, over relying on it and not actually learning from what it generates so you have butchered code popping up in questions from people.