"half of Hungary’s industrial capacity was destroyed and 90% was damaged. Transportation was difficult because most of the rail lines and locomotives had been destroyed. What remained had either been taken by the Nazis back to Germany or seized as reparations by the Russians."
How can you avoid inflation if your productive capacity is destroyed? You can't.
How can you avoid "to print" more money if that destruction of real capacity is making your money less and less valuable? You can't.
The exact same case happened in Germany (because the war and the war debt 'reparations') and Zimbabwe (because the agriculture capacity was destroyed by a redistribution of the land) (1).
Obviously, it's the real economy what is important.