Yep...that is how they make the electricity to run the car in a hydrogen fuel cell vehicle. Still need to make the hydrogen however.
http://www.ballard.com/be_informed/frequently_asked_questions/mcormack-27_0410151340-507
You can also burn hydrogen directly in an internal-combustion engine, as in this hybrid one:
http://www.pureenergysystems.com/news/2004/06/10/HydrogenElectricCar/
The hybrid car is too small for my taste, but the picute of the vehicle I saw a few months back looked like an SUV that was modified to use fuel cells. One I read about actually used methane made with pig manure :^)....Now that's really thumbing the nose at the ME.