Yes.
Russia did this in response to Germany taking over Russia’s three refineries.
https://www.cnbc.com/2022/09/16/germany-takes-control-of-russian-owned-refinery-.html
https://news.yahoo.com/germany-takes-over-subsidiary-russian-053743350.html
Why would Russia do it? They could stop flow by closing the valves at the source. Why endanger a high value asset like a military underwater demolitions type, when a pipeline tech could achieve the same result with a push of a button in a control room?