Gas Fired Furnace's Electrical Question.

No, it’s not okay. That is a code violation, but I see that from time to time myself. Would you like a code citation on when it is okay to put a cordset on an appliance?