The short answer is “sometimes”. But it’s not for the reasons you might think.
As an accused person who the law presumes to be innocent, you would think that the courts would protect you from your reputation being dragged through the mud before your trial and before any finding of guilt is made. You would think that, in fairness, if you are ultimately acquitted of the offences, you should not suffer the damage to your reputation that the spectre of a criminal allegation, especially a sexual allegation, brings. Unfortunately, the system doesn’t work that way.