You could imagine writing about a prostitute, for instance, but if you haven't spent time with prostitutes then you're going to get all these details wrong. But if you have a lot of sex with prostitutes and you're friends with prostitutes and you interview prostitutes, then maybe after many, many years you might be able to create prostitute characters.