Perhaps. But it's clear that biases within the judicial system against sex workers have become enough of a problem that the laws aren't protecting anyone. Whether or not the law was designed to protect these women -- which I doubt, as it's always struck me as more puritanical, patriarchal morality policing -- it's clear that it doesn't. Not in its current form.