I don’t think that will create a food shortage as much as it will change where your food comes from.
You would still find food in the stores and you could still garden for your own use or purchase from a grower if you went to his property to purchase.
So the key is to have something the store or the grower wants in the event that money becomes worthless or in the event you lose a means of getting enough money.