If it stops even just 1 person once, isn't it already worth it?
We slaughter animals millions by the day in an industrialized fashion. I'm sure they'll feel much better that even singular instances of sexual harassment are officially not ok on paper.
As a very general statement, there's a cost to having laws exist. A law that stops one human-scale action ever is very unlikely to be worth the overhead.