Yes, to personal friends, to strangers and even to my own hubby. Usually a mild, " there are children present" does the trick. Sometimes, I have had to be a bit more forthcoming, " Tina, you CAN'T talk like that in my home in front of my children"........"Hey, Take that trash talk elsewhere!", or a reminder to my own........." we have a family of little girls here".
Most people, at most times are willing to respect your limitiations when you define them.