Yeah they can, and the whole functions that Copilot spits out are quite obviously covered by copyright.
> especially when they are used in a different context.
That doesn't matter.