Not in the literal sense, no. But I did put one of our dogs into a kennel just outside the chicken run at night with the idea that she would bark and alert me if anything came creeping about.
Darn dog barked at every falling leaf, every shadow.
She is now back inside with the other dogs, and I sleep better.