No, they were not. Trains are good for taking large numbers of people from one place where they don't want to be to another place where they don't want to be. In certain situations that can be a useful thing to do, but you can't design a city around it. In every case you have in mind, rest assured, the city was there first.