I'm a dog person, so absolutely.
I usually say "Hi Puppy!" to every dog I pass in its yard. If they're being walked, I usually don't say anything, but I've been known to say "beautiful dog" to the person. Of course, I frequently pass my wife and one of our kids walking one or more of our dogs, so I definitely talk to them

.