Not really. Rail in the US is spectacularly expensive; look up a few recent rail projects with dollar figures attached, they're billions of dollars each. That's the same order of magnitude as the cost of an entire self-driving research program (Waymo has taken $3B of investment, according to its Wikipedia page), which, if successful, would scale quickly and easily to the entire world.