A whole lot of it, yes. That’s why we’re down to just five Class 1 railroads today, never mind all those “bike paths”.
There's a disused rail line very close to where I used to live in the area I grew up. Its the old Buffalo Pittsburgh Line coming from Northern PA into Buffalo NY. The last passenger train on it was 1973. Now its become a bike path https://www.ecattrail.org
My great uncle, who was born in this area about 1880 and died in 1975, was a farmer, timber man, entrepreneur, etc... who also write about his farm life in a regular column in his small town newspaper of the day.
As a boy, he used to milk his family cows, put the milk in large jugs, and take them by train for about 30-40 minutes into south Buffalo to a dairy. As I recall from his writings, the journey cost 5 cents.
His old farm is now outer-ring suburbs. It would take someone about 40 minutes in rush hour to make the same journey in their car.
I am always puzzled how our high-tech, modern society can't afford to operate a simple one-line train economically when our ancestors could do so easily.