Sure. It is an effect that has been taken into account by government agencies and grid operators, though: https://www.eia.gov/todayinenergy/detail.php?id=61743
The good thing is you can predict it extremely accurately, probably much better than cloud cover...
Das ist halt extrem teuer. 1,4–3,6 Mio. Euro pro Kilometer. Auf Strecken wo nur ein Zug die Stunde fährt, ist das nicht so sinnvoll. Aber das Problem ist gelöst: Akkuzüge. (Oder Wasserstoff, falls man eine besonders lange Strecke ohne Oberleitung hat)