Yes, this study corrected for reports of CSA, lower income, etc. in people who are drug addicts. For those who are additionally sex workers they found:
increased rates of mental and physical health problems (eg, suicide attempts, anxiety, STDs, and bloodborne infections) and use of some health services (eg, emergency department visits for women and mental health services for men)
https://jamanetwork.com/journals/jamapsychiatry/fullarticle/482625#SEC2
There aren't many studies done which correct for mental health issues before someone starts as a sex worker. Even less which achieve a long-term study over a cohort of sex workers where not ~80 % can't be found anymore for various reasons.
But there are a few on how to protect the Johns sex workers from STDs. I leave the interpretation of this inbalance in research to you.
:-)