Don't use an extension cord for generator-to-house wiring.
No. A standard extension cord is not designed for the continuous load, weather exposure, or the connection to a transfer switch inlet. You need a specific generator power cord (often called a “generator cord” or “inlet cord”) with the correct plug ends and wire gauge.
Extension cords are rated for temporary, low-load use. Running your whole house through one is a fire risk. The cord will heat up, especially under high load, and the insulation isn’t rated for long-term outdoor exposure. Plus, extension cords usually have molded ends that don’t lock into the transfer switch inlet, making them prone to accidental disconnection.
For a typical 30-amp generator feeding a transfer switch, use a cord with 10-gauge wire. For 50-amp generators, go with 6-gauge. The cord length should be as short as possible — 25 feet max unless you calculate voltage drop for your specific load. Buy a cord specifically sold as a “generator to transfer switch” cord with locking ends. That’s the right tool.
This is not where you save money with a $15 orange extension cord.