Dogs should not chase horses, ever.
If they do annoy the horses, a good thing about it is that they can condition the horses not to be afraid of dogs that you might meet out and about.
My dog will follow horses around the arena, so if anybody is going to ride, we put her in her pen.