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.