Gardens are good for herbs, vegetables, and possibly a
small quantity of staple crops.
When you're trying to provide calories (as well as sufficient essential nutrients: protein, essential fats, and vitamins), quantity matters, and a few raised beds really won't get you very far.
An adult needs roughly 2,000 food calories (kilocalories) per day (~1,600 -- 2,400 for women, 2,000 -- 3,000 for men), though it's possible to survive (with weight loss) on less than that.
1 kg of wheat flour contains 3,600 calories, or nearly the daily calorie intake of two adults.
An acre of wheat in the US yields about 40--50 bushels (under modern mechanised agriculture), at about 27 kg/bushel. Which, if I'm doing my maths right might mean an acre can support about 4.8 people (in wheat).
Under emergency and hand-raised conditions, probably markedly less.
Mind: if you've got some but insufficient food, you could supplement with what you grow in a garden plot.
The traditional famine food on Earth (since Europeans discovered the Americas), or Mars (https://www.youtube.com/watch?v=uJCMgwcJNOk) has been the potato, at about 10 tons per acre. That's about 10x the wheat yield, though potatoes have a much higher water content, and rate at about 870 calories/kg, about 25% as much as wheat.