I suppose it would all depend on context. It is, after all, most difficult to write a quiz about the musical "Damn Yankees" without dropping the d-bomb. We have a quiz online where "Damn Yankees" is the title, so it's not strictly ruled out.
If it's used in a context where it is meant to offend, insult or convey strong negative emotions about a person (or people) it might not pass muster.
I would suggest messaging an editor in the category where you're writing your quiz (music?) and ask for an opinion on the specific lyrics that you wish to quote.
_________________________
Chan fhiach cuirm gun a comhradh.
A feast is no use without good talk.