If you engineer a clean room process, it does not. Already proven with an open source project that went from GPL to MIT via clean room (chardet).
That sounds similar to how LLMs have been trained on GPL code and yet output is not (yet) considered derivative work