Ok...not great at this, but have helped friends with their solar and battery setups for various things, so let me chime in.
Others can answer the "Will this work" better than I.
Ok, with solar panels, they absorb the sunlight and convert it to electricity. They have a peak rating...that is...."Under optimal light conditions, how much electricity can this make from the sun?" So that's the power rating coming from the panel.
Next, you need a device called a charge controller. This acts sorta like an electrical traffic cop. It controls and smooths out the dirty and somewhat unreliable electricity coming from the solar panels. It is possible to power devices from the charge controller, but normally people connect batteries to them. This allows you to store electricity made NOW, for use LATER (presumably when there is no sun).
Next, you have batteries. There are different types, but you will see people recommending "deep cycle" or "marine" batteries. These are more expensive, but can hold a charge longer so they are normally worth the extra expense.
Ok, so now you have the three parts of the collection system. All of these run on DC...or direct current. Wikipedia can explain this better than I ever could. But it is important to know/understand that generally (and this is not some sort of absolute) that things made to run on DC are generally lower power. Think small lighting, maybe a small fridge in an RV, etc. You generally need quite a bit of DC power to run larger things.
AC, the type of electricity that comes from your plugs at home, tends to power much more powerful things. It is possible to convert from one to the other, but know that each time you convert, some amount of electricity is lost in the conversion.
So those should give you some concepts to at least reason your way through. Most people try to find ways to get DC things that suit their needs....lights, car stereos, vacuums(?!) that are built for DC. Then they simply find ways to charge the marine batteries that supply them. This can be done by your vehicle as its running (takes some modification...it doesn't just happen by hooking up the tail lights!) or by doing solar power, etc.
The fox provides for himself, but God provides for the lion - W. Blake (attribution corrected)