This is the problem, the answer is “maybe”. You can put in text from any professionally written source and you run the risk of it being detected. You can have AI text missed and you have have human text false flagged.
In terms of the OpenAI Terms of Service you may not pass off AI generated work as human made. However, that does not mention work that is derivative of, or inspired by… the legal definition of which is extremely loose.
If you put some effort into modifying the text generated by an AI then it is a unique work. I can’t give you 100% definitive advice, no one can, what I can say is that if you put work in, you have content that not the same as that which the AI produced.