Does comedy use religion as a punchline or punching bag?

God Forbid - A podcast by ABC listen - Fridays

Podcast artwork

There's a long history of comedians making jokes about religion, but where is the line drawn between offensive and funny?