Yes this is possible. It is not a good use of your resources. This makes sense if you are going off grid, but for something that is only going to be used when your power goes out, it makes more sense to buy a small generator.
If you want to run your fridge/freezer you need several hundred watts. If you want to run it at night you need a battery bank, and a bunch of controller circuitry to do it right.
It has more uses: Take it camping. Use it to power your tools on the back 40 (where mine is right now)
It's a single item, not a combination of panel, controller, batteries, inverter.
You can sell it, loan it to your father-in-law.
A cheap generator is a few hundred dollars. They aren't very efficient, but you will be able to run your fridge for a few hours a day to keep it cold, keep the sump pump running, etc. In power outages here we find it takes about 3-4 gallons a day to keep the freezer, the fridge and the sump pump going. This leaves it idling most of the time. Since I have two mowers, a chainsaw, an auger, soil mixer, farm pickup, and two tractors, I have 4 each of gas and diesel jerries that cycle several times a year.
The next step up are ones that are really quiet. These are the ones that people with motor homes buy. 1 to 2 kW and you hardly know they are there. About double the price. They are also more efficient, slowing down under light load.
After that, you have a raft of options between diesel, natural gas, propane and gasoline, electric start, whole house systems, automatic transfer to the generator when the power goes out.
Before you buy, rent one. Verify that it will run all the things that you need. Set up conditions that could shoot you in the foot: E.g. Compressors draw a lot of current starting. What happens if your freezer and your fridge start at the same moment? Might just slow the generator down. Might stall it, or trip the breaker on the genset.
Store it empty. Have a couple of gas jerries. When you get a hurricane warning, fill the jerries. Use them up in the lawnmower later.
Gas has a limited shelf life. Gas with ethanol only a month or so at warm temperatures. If you want to store full jerries, then get no-ethanol gas (premium usually) and add a cap full of gas-saver to it. Store them out of the sun.
If you need a generator to be ready, fill it up with your preserved gas, start it, get it going well, then shut off the valve on the fuel line until it quits. This leaves little or no gas in the carburetor to dry and gum things up.