Yes, but if you were being accurate you wouldn't say "AI wrote this code for me", you'd say "I used an Eliza bot to automate copying and pasting from someone else's github repo".
nice answer. LLMs do reflect whatever humankind has produced. In good and in bad. But it is hardly pirating. It can also do what humankind has never failed to do, for example: