That doesn't sound right to me. While perhaps not illegal, it is certainly unethical and uncaring.
https://www.eeoc.gov/laws/types/retaliation.cfm
"Participating in a complaint process is protected from retaliation under all circumstances."
The point is, she did not tell the CTO that she was a victim of sexual harassment. End of story.
Informing the CTO that one of the managers said (verbally) something in regards to the conditions of the employment is an entirely different issue.
The idea that you think both of the issues are even remotely compatible scares me.
That doesn't sound right to me. While perhaps not illegal, it is certainly unethical and uncaring.