The key is being sensible while doing it.
As the first cases of covid appeared in Italy (it seems so long ago now), i started buying a bit extra, long life milk, cans, stuff that would keep. Nothing stupid (imo), just prudent shopping reacting to impending (as i saw it) problems.
Im doing the same now for Christmas, bottles of pop, pineapple juices etc etc. Mind thats partly because i hate carrying bottles and bottles of the bloody stuff during the xmas shop. Spread the load now.
The toilet roll debacle is a typical example of people losing their mind. Spending a few quid extra a week seems sensible to me, filling your trolley with enough loo roll to last a year isnt.