Yes it was. Otherwise America would not have needed to carry out an act of war against Germany and blow it up.
https://www.offshore-technology.com/news/gazprom-shuts-down-nord-stream-1-pipeline-indefinitely/
Nordstream 2 was not supplying gas having been suspended in Feb 2022.