No. Forcing them to play through it is though.
"Railroad" is a term that gets a bad wrap. It boils down to this, if your players are making train sounds and comments like "Hey, a station, we hope the line stops here long enough for us step out and stretch our legs"... then you are "doing it...