Yes. As I harvested my broad bean this year, netting about six decent portions, I thought of the cost of the initial plants, the compost, the water I've used, the netting I used to protect the plants, the fertilizer, the summer savoury plants I paired with then to keep pests away all of my time spent tending to them. Not to mention the council removing my green water after disposing of the plants and excess soil.
Probably cost me about 35p per bean.
Gardening is a hobby, not an industry.