Like an inverter that plugs into the lighter in a car? If so, yes with great success.
Remote hunting cabin way off grid and we don't have a generator.
For many years I charged my old Milwaukee 18V ni-cads and recently my M12 batteries, along with other rechargeable flashlights and such, with perfect success off of one.