The dictionary gives the following definitions:
to have sex with someone.
used when expressing extreme anger, or to add force to what is being said.
- an expression of usually slight anger or surprise, or a way of adding force to a statement, question, etc.
While not listed, is there an implication that heck has a meaning of to have slight sex with someone which makes it inappropriate to be used in public occasions?