Depends. Did you even once drive to the nursery or hardware store to pick up seeds, pots or fertilizer to grow it?
If so, you have completely negated all energy savings.
If so, you have completely negated all energy savings.
That said, it's a culture of food production that's really where the efficiency lies. That's people saving and trading seeds, helping each other farm and harvest, and bottling and canning for winter.
That's not only tremendously efficient if it's done locally, it's also fun.