Yes and they tried, at least in France. They prepared paper money and political control and had a few high rank generals ready to act as lackeys.
De Gaulle and the communist resistance avoided it (for different reasons) but it was not easy.