If I trained an LLM on code I wrote and had it write things I would probably be able to copyright it though
No, you wouldn’t. Source doesn’t matter. Only the creative expression of humans is copyrightable. You do not own the copyright of the picture your monkey took.