In normal life the use of swearing is often seen as a mark of poor social skills, weak education, possible low intelligence. Cussing in a job interview can scuttle your chances if you aren't going for a job as longshoreman, drill sergeant, or boatswain's mate.
That said in an emergency situation a few well chosen and well placed swear words can serve as a tonic to break people out of their illusions that things are normal and that their usual concerns with modesty, decorum, property rights, and civil behavior are misplaced.
For all things a time and a place.