Connecting a capacitor across a generator always improves power factor,but it will help depends up on the engine capacity of the alternator,other wise the alternator will be over loaded due to the extra watts consumed due to the improvement on pf. Secondly, don’t connect a capacitor across an alternator while it is picking up or without any other load.