Dogs can be a deterrent, but it’s not a foolproof method and depends on the dog's temperament.