Jokes that one can make in front of friends are different from the ones you make in front of coworkers. A joke I make in front of adults may not be one I make in front of kids.

It's all about maturity and judgement.