I'm utterly confident that if I looked I could find examples of comedians telling jokes about those subjects and audiences laughing.
For example, I just searched Google for "comedian pedophilia joke" and the first result is about Louis C.K. doing one during an SNL monologue.
Nothing is off limits in comedy. Plenty of stuff is in bad taste, but as long as the comedian is actually trying to be funny I think most or at least many other comedians will back them up.
1: https://www.washingtonpost.com/video/national/the-thing-abou...
2: https://www.youtube.com/watch?v=j8z5wBwY5Zw