Yes, it is true that the pimps and human traffickers are the real criminals, and that the vast majority of prostitutes are in fact victims. And yes, it's a good thing not to prosecute them. But when you make buying illegal, you force prostitutes away from the safety nets that could help them anyway. If you're the police, how do you catch johns? Follow the prostitutes, of course. So they're forced to avoid the police, lest they're unable to meet demands from their pimps, and get punished, often violently. And in avoiding the police, they also become more vulnerable to abuse by johns.
The real world just doesn't work like this. You can't nearly separate these things into legal/not legal bins. They're entangled and can't be unentangled merely by way of ideology or wishful thinking.
The other issue is of course, is it wrong to buy sex? If you're a sex-negative feminist, the answer is yes, because your ideology rests on projecting your own sex-negative outlook onto all women, which to me seems hilariously and ironically sexist. Personally I believe women have very diverse attitutes to sex and should have autonomy to do whatever the hell they please with their lives and bodies.
To me, the only thing that really matters if whether the sex is consensual, without clear-cut coercion. Is it wrong to buy sex from someone who is clearly a victim of human trafficking? Absolutely, I think so. This is basically slavery.
Is it wrong to buy sex from someone who's selling it, because it's their only option? This one is trickier, but I think it's about as wrong as getting your iphone screen fixed by someone who couldn't cut it in "real" IT work. Or getting your garbage picked up by someone whose only marketable skill is emptying a bin into a truck. Society is full of people doing jobs they hate because it's all they got. And that sucks, but criminalising their customers doesn't seem like a reasonable solution. It's a systemic issue.
Is it wrong to buy sex work from someone who does it because they genuinely love it(yes, they do exist, though they are awfully rare)? How the hell could it be?
So in summation, it seems to me human trafficking is the real problem. Criminalising johns seems like a stupid way to tackle it, and it demonstrably does not work. Extending it to the online sphere makes even less sense.