As far as I can see, the only requirement Stack Exchange has is not to show swearing words in the question title, since the title is used when showing a list of hot questions taken from different sites and shown in the Stack Exchange drop-down menu.
Clearly, they are allowed in posts when the question is about those words, as long as the word doesn't appear in the title.