That is literally not true lol. Hitting Russian refineries means there is more crude for people outside Russia, as they are forced to export what they don't refine lol.
As MiroslavPokorny notes though, there are still storage tanks at either end to ensure there's always tanks holding a head of crude from wells to feed into the pipes, and tanks at the port end to buffer incoming when no ships are in port.