Restricting sex to strict monogamy would definitely limit the spread of STDs and prevent some socially disruptive things like a divorce with children, parents rejecting illegitimate children, etc. Of course in real life none of that ever actually worked, and things like condoms and economic equality might work better. Or not. We haven't exactly solved these issues yet.
But yeah, if people actually cared about what Jesus said about anything, poverty would have been solved a long time ago.