With the correct voltages, yes, you can charge batteries using any power source, be it a wind-up-torch or solar cell.
In general, you'll need an efficient switching DC/DC converter to generate the appropriate input voltage from whatever your power source is.
Also, if the batteries are Lithium-based, you need a battery management circuit to avoid over-charging (and over-discharging) as well as balancing if you have multiple cells.