It can, as long as you keep in mind the super secret chasing livestock technique:
Walk toward them while rattling grain in a bucket.
Whatever type of bucket they are used to, metal, rubber, etc. This is also why you get them used to be fed grain from a bucket at odd intervals from a young age...
Landlord ages ago had a weed short out his hot wire and his few cows were out. Came by to collect us as a free source of labor and told us "just find them, I'll get them back." We did, and he did. Then we walked the fenceline and got any weeds off the wire.
I have it used when I watched a friend's goats for a weekend while they were away. Sure enough, they broke a fence board loose and were out. One bucket and a handful of chicken pellets and they were back inside, and a handful of screws later the board was back too.
When I built my chicken pen I put a hot wire around it low to keep out the local 'yotes, foxes, coons and strays. I made sure to get one rated to burn weeds. Sometimes you can learn more than one lesson...