Certainly NOT a good edea.
Any time, and EVERY time, that you convert energy from one for to another, you lose, through friction, heat, inefficient burn, etc.
Internal combustion engines are terribly inefficient.
But have one big advantage - fast refueling with an easily transported and stored...