I did that from 2008 to 2014 (but I didn’t buy gold).
It worked out terribly. I should have parked it in a diversified portfolio. Instead, housing and equity prices inflated, and I lost a ton of potential gains.
Buying gold during the crisis would have made it even worse:
https://www.macrotrends.net/1333/historical-gold-prices-100-...
If you must buy gold, it’s best to buy some when the stock market is booming. If you bought gold in 2011 or 1980, your current return would be 0%. It would have been very negative last year.