Well, it makes a point ..in a circuitous manner. But the point could have been made without the joke, and a joke could have been made with other referents.
I didn't see the show, but a couple of those late-night shows construct their whole routines to titillate young, brash audiences instead of us old.... ahem... 'sophisticated' types.