Sure, that will do the job. That looks like a dog that would show up in my yard so I could figure out how to get it back to its owner. I have a special leash for that, to keep wanderers out of the street while I figure out if they've got a tag, etc.
One little guy, a shaggy pint sized terrier, always went through at a sprint and wouldn't be lured with food or sweet talk. He must have been around for weeks, and I like to think he made it home, but he wouldn't be helped.