Sure, assuming the right time as well as place. Delivery matters. Raw jokes generally don't do well. Schadenfreude generally doesn't do well. Sarcasm generally doesn't do well. Jokes based on stereo typing 'the other' generally don't do well. Drive by one liners generally don't do well.
Humor that isn't mean, that is relevant and without agenda, can work when it flows naturally within something well written and not written just for the jokes.