It can be cheaper than buying at the store if you plant things that match your local climate and if you are able to eat them fresh they are far better since they have the negatives of shipping.
Not the first few years though as the cost of tools/fencing/etc are an up front cost. But if you do it for a decade it goes down to the cost of seeds, water, and fertilizer which can be pretty cheap in moderate climates.