Yes, you can use locomotives to replace any of the coloured cards on a route, even if it has ferries. Locomotives are multi-colored, and act as wild cards in the game. Locomotive cards can be played along with any set of cards when claiming a route. On any route, the "usual set" of coloured cards includes possible use of locomotives.

Only top voted, non community-wiki answers of a minimum length are eligible