As a fellow golf cart owner, yes.
BUT, if your golf cart charger is anything like mine, it will take 6-8 hours for a full charge. That's a great deal of genny runtime. I've done it before, but just for a short charge.
2005 Fleetwood Providence 39J
CAT C7 350, MP-8 Programmer
My wife does all the driving - I just hold the wheel...