While Judaism certainly frowns on pointless or hurtful jokes and comedy along with frivolous gaiety, humor can be a great vehicle to pass on a message of mussar.
(And any mussar below applies to me as much as - if not more than - anyone else. ;-)
Enjoy!