No you can't. In the same way you can't watch a Mickey mouse movie and then draw your own Mickey mouse from what you recall from the movie
Yes, I can. I can create a legally distinct mouse-bases cartoon.
You're right that if an llm gives you copyrighted code that it would be a potential problem. But the article saying that it somehow "strips the code of any copyright" is ridiculous.