Depends on many things
1: Do you plan to run the generator as you drive (if so yes)
And if you have an inverter then:
2: How much battery and how far (That's a math quiz but possibly)
3: how big is the alternator (The bigger the better)
4: And the size and wires connecting the alternator to the house batteries when the engine is running (Also bigger = better)