Eeeeeh.
That's very debatable. If you have a direct DC genset, then, yes, it is arguable more efficient and in many ways more useful than running a vehicle.
But... Once you factor in conversion losses and maintenance schedules, generators are a huge hassle and that's why anyone that can sets them ...