That's a risk, but I don't think that's the greatest risk of all (it's a nice cliche though).
The greatest risk is probably taking a horribly miscalculated risk, and throwing all your weight, money and wealth behind that miscalculated risk, and losing everything, including your ability to pay rent, bills, medical costs and basic things like food.
That would be a much greater loss than inflation, and it's one of the reasons why diversification is important.
Take a risk after a deep study & analysis prepare yourself mentally do not take a blindly...
AND diversify 👍