Yes. The datalogger can control power to external devices under program control. For more information, see the “Decisions, Decisions, Decisions…” article.
To turn a generator on and off, a solid state relay with a load capacity that matches or exceeds the power of the generator is needed. The relay is controlled by one of the control ports on the datalogger.