What's the consensus about characters laughing at jokes you written?

(Edit: in this hypothetical writing scenario the story has a very sitcom feel like Simpsons or Futurama)

Maybe this is a self doubt thing but would having a character laugh at your own joke be a low hanging fruit? Like if I have character A tell a joke that makes the audience laugh and then have character B laugh at said joke thinking it was funny.

Like trying to subliminally add a laugh track to a scene, regardless if the joke is funny or not.