This could be the same for the US or Ukraine. So considering that, all things being equal, it sounds pretty terrible for the main Russian goals, so I'm going to say no it wasn't Russia.
There's a very real possibility that the actual goal of this entire mess is/was for Putin to get into the history textbooks as one of the great Russian leaders before he dies from cancer (or whatever it is that he has).
On the other side, Ukraine destroying the pipeline and making sure EU members don't give it to Russia in order to restore the flow of gas makes pretty good sense.. as long as you don't care about the EU citizens.