No. You should never directly connect a generator to an electrical outlet. In terms of a permanent setup in the home, most emergency backup generators should be connected to a double pole and throw switch. This type of installation is often done by a licensed electrician. If a generator is directly plugged into an outlet then the home’s wiring could easily overheat or overload since the wiring in the home would no longer have the protection of the circuit breaker. In the event the wiring in the home  is overloaded, this could lead to a fire.