Sure, logistics matter. I'm sure Russian-gauge railroads in Finland would be mildly convenient for invading Sweden, provided you can first invade and utterly defeat Finland quickly enough that the railways survive.
But if Putin could do that (he can't), railway gauges would be the least of our worries.