Indeed. Large scale war is extremely expensive. Russia's government is spending about 40% of total tax revenue on invading Ukraine. So anything it can do to harm the economies of the people fighting it helps. Equally, this is why Ukraine has been putting so much effort into blowing up oil and gas infrastructure in Russia, their #1 source of tax revenue.