Yes and no, and there are bi-modes and bi-modes.
On GWR and LNER they were too successful, with electrification which should have been prioritised being cut back instead. However, obviously it takes time to electrify a route and so the network won't be wired overnight. Electro-diesel bi-modes...