That's one way to look at it.
Buying groceries in advance would also mean less numbers of trips to crowded places. It's a good measure to control the spread.
Provided people buy in reasonable quantity so that everyone gets it.
I saw a grocery store in my area which put on a printout only 1 bag of rice per buyer..that makes sense.
People are not buying in reasonable quantity though, it is only causing lower middle class and below people trouble since affluent people are buying huge stocks.
It is okay buy a week or 10 days stock not month or two months.
10