It probably would, but....

Cows are about the most stupid animal in the world over 25 pounds. They'd probably freak out, and run in a straight line. With my luck, it would be a heat seeking cow, so even dodging wouldn't help. Cows are half a ton or more walking, eating, pooping dumb and panicky. I wouldn't want to make the situation worse.

Besides, attack cows? That is out of Monty Python. The only ones that are likely to charge you are bulls- don't try to spray it, at the effective range of pepper spray it won't slow down before it hits you.
_________________________
-IronRaven

When a man dare not speak without malice for fear of giving insult, that is when truth starts to die. Truth is the truest freedom.