Yes. The interesting legal question is that are you sharing the original knowledge if you've transformed it via teaching it to an AI.
https://www.reuters.com/legal/litigation/ai-companies-lose-b... reports on the ongoing case on the image generation side of the fence.