Short answer: No. That was actually a contentious political decision at the time, although this fact has been airbrushed from the official version of history.

Slightly longer answer: Denmark joined Bretton Woods, just like the rest of The WestTM. When Bretton Woods crashed, we tried to maintain a D-Mark peg, but had a decade of regular devaluations against it.

Of course devaluing and then attempting to defend the new exchange rate is just asking to be attacked. What we should have done was to float our currency. What we did instead was elect a right-wing economic hit man who enforced the D-Mark peg to the exclusion of all sensible macroeconomic concerns. Right on cue, this caused our productive economy to crater and the FIRE sector to blow a huge bubble all over the first half of the 1980s.

Somehow the 1980 decision to go for broke on the peg rather than abandon it has been anointed as the greatest act of wisdom in recent Danish economic history - rather than the gross act of irresponsible industrial sabotage it actually was.

Sounds like the defence Sweden put up for the ERM/Ecu-peg (or whatever it was called) in the early 90's. The Riksbank jacked interest rates up to 500 % (yes, really) before it conceded defeat and let the krona float. Madness, but at least and unlike in Denmark, everyone in Sweden nowadays agrees that the peg was insane.

The Bundesbank with its commitment to price stability had refused to lower interest rates massively. The partner countries are forcibly reminded of their responsibility for their currencies; the process of convergence needed for monetary union is strengthened.

The problem for Denmark was that the decision to defend the peg was made at the time Europe was coming out of the oil crisis, and the defence was supported by the full force of hitman fiscal policy. Which meant that it did not require ridiculous interest rate spreads, "only" a fiscal policy of systematic industrial sabotage. Indeed, the Danish version of the D-Mark peg has been a fiscal peg targeting interest rate spreads.

It will be interesting to see what happens the day it comes under serious attack. So far our oil revenues have made such attacks non-viable, but that state of affairs will not last beyond the present decade.