They aren't especially healthy for humans, either. However, I buy a box from time to time and keep it in a glass jar in the outside closet. I slip a few in with steel wool behind the siding and bury a few here and there around certain bulbs (in a part of the garden where I don't grow any food or herbs).
My garden is fenced in so Winston the pug doesn't go there. Bella the cat stays inside. The neighbors's cats stopped using my garden as a litter box after I started sprinkling coffee grounds around. I prefer a few strategically placed mothballs to the "pitter patter of little feet" in the walls or chewed bulbs. Rodents - chipmunks, voles, mice, squirrels - were a big problem the first year that I moved here. Tiffany, my late Westie, was a big help finding where they were sneaking in. Winston the pug is a pacifist - except for pomeranians for some reason. I may need to find him a terrier companion at some point.