It would probably be OK in a village. However, I'd chose a place in the wilderness, preferably where I wanted to set up a more or less permanent camp/homestead and mark the location on the overland map to be able to find it when checking in on the dog.
If you don't have any enclosure, yes, leash the dog to make sure it can't wander off.