It has its pros and cons. I generally hike alone, so it's helpful for me to have a dog scouting ahead. More than once I've been warned off bears, moose, and even a lion, instead of rounding the corner and running into one. In each instance, we've parted without anyone getting hurt.

I imagine the advisability of bringing one along depends a lot on the dog. An aggressive one would be a liability.