No, it doesn't, though it seems to be the standard method that people ignorant of law enforcement come up with and think they have solved the problem of keeping LE out.
For a start, if soliciting prostitution is illegal, the LE agent doesn't have to perform service, they just have to bust the “client/screener”, and turn them so that they report back properly.