A risk? Probably, but most things in life have some risk involved.
The resale market is very uncertain at the moment. If the pandemic and associated financial disruption is short lived (wishful thinking IMO), then people may have the money and confidence to buy again in a few months to a few years. If the disruption is more extended, it may take several years before the economic effects are dissipated enough that the real estate market returns to full strength.
It also depends on your goal. If you plan to live there long term and have an affordable home, and the possibility of having your house worth less than you paid for it for a few years doesn't freak you out, then that is different than if you may need to sell it within the next 5 years and risk a fairly substantial loss.