Like others have pointed out - different forms of humour are acceptable. It all just comes down to the timing and the audience.
Some people might find humour in jokes about death, however, those same people may not like those particular jokes at a funeral.
It all boils down to; context, timing and the audience.
Games and debauchery.