Given that horses run faster than 30 mph [1], and people have been riding on horses for a while before trains were developed [2], this seems unlikely.
[1] https://horseandrider.com/western-horse-life/fastest-a-quart...
[2] https://en.wikipedia.org/wiki/Domestication_of_the_horse