Posession of gold was banned in several leadimg economies such as US and UK in the 20th century [1]. Didnt really stop people from using gold as a store of value.

[1] https://en.m.wikipedia.org/wiki/Executive_Order_6102