Would the cost of electricity to freeze your own home cooked pinto beans save over buying canned store bought?

The electricity needed to freeze home cooked pinto beans would likely cost several times the price of canned store bought beans, even when considering costs for cooking and packaging.