I don't feel that's railroading as much as plot set-up, and as long as it's not used too often (the GM taking players' abilities away ex machina) it's okay.
To me, the example of railroading was, when I was younger, there was a DM. The problem was he was one of those DMs who, instead of being...