That isn't true. If a country makes a habit of printing too much money, then creditors will start to insist on only loaning it money denominated in other currencies. And once it starts doing that, the country can be forced to actually default on its debts: