Obviously driving prostitution underground and out of reach of researchers will improve the lives of sex workers. Prostitution is a very recent industry and was invented by the internet
This statement ranks fairly high up on my "List of Hackernews' Statements that are indeed Very False".
It would be more apt to say that regulating and banning prostitution is a recent idea (recent as in "the last 100 years or so").