Sure, if the humor is backed up with some semblance of guts it is a good thing. I have a friend who was arrested for flipping the bird to someone driving on the highway. He knew this person and was having an ongoing squabble with him. That person called the cops and my friend was arrested (flipping the bird is an arrest able offense here.)
Now I gotta say, my friend has a great sense of humor. He was the only white guy in jail with about 20 black men. One of them asked him what he was in for. He replied he shot the bird at someone. The black guy thought my friend actually shot a bird and asked him if he shot someone's parrot. When my friend said no, you don't understand, this is what I did...you know, flipped someone off. He demonstrated the gesture and everyone laughed so hard they got along ok during his short stay there. He told them jokes, some of which were racial, but the way he told them had everyone laughing so hard the jailer came in and told them to be quiet...this is jail, you're not supposed to laugh in here. To summarize, the blacks told their versions of the same kind of jokes and no one took offense. It was a mutually agreeable situation that no one was going to get upset.
That is the definition of good humor. Ridicule does not have anything to do with humor. Probably the best way to measure humor is to see if what you say to another person face to face makes them laugh. Of course the internet doesn't offer the luxury of face to face discourse. Best rule of thumb is to not post anything you wouldn't say to a 350 lb. linebacker or a Mafia don and you should be alright.
Les