Sure, but copying 1 or 2 sentences verbatim into a long program probably isn't enough to win a copyright suit (de minimis). Or at least it would be pretty grey. Similarly, the simpler the program, the less likely the creative intent shines through.
(Mostly im just trying to say these things depend on the details, and the anti-AI crowd tend to handwave the details away. They might still be right, but its far from an obvious slam dunk)