No doubt. AI is adept at writing spaghetti code loaded with lots of unnecessary garbage. The level of acumen around writing cleanly to the API is only as good as the last training session. When the API of the libraries is improved after the model was trained on the previous generation, you get code that doesn't work or uses a deprecated routine that will die on the next release.
Control-U some web pages.
It’s amazing how much goes into many webpages.