I don't see how that says it's OK to do it. On the contrary: he got what he deserves, namely, a huge beating. It's funny (ish. I don't think it's hilarious, but that doesn't really have much to do with it being sexist in my mind) because it's Deadpool and She-Hulk.
Deadpool looking at a "regular" woman and hitting her on the ass, getting away pretty much unscathed, saying "hey, worth it"? Not funny. A regular guy hitting She-Hulk's ass and being bludgeoned to death? Not funny. This is somewhat funny because it's cartoonish exaggeration. There's whole loads of things happening in comics (and cartoons even more so) that we wouldn't find funny or hilarious at all in real life - this is the whole foundation of Itchy and Scratchy being the "larger than life" version of Tom and Jerry.
If you really consider this to be saying "sexually harassing a woman is ok", are you also of the opinion The Simpsons is sending the message that parents are free to strangle their children, and children shouldn't feel bad about doing things that can seriously injure or kill?