Yes, it is generally recommended to plug a dryer directly into a dedicated wall outlet without using an extension cord. Dryers typically require a higher voltage and amperage than standard household outlets can provide, so they are designed to be connected directly to a specific type of electrical outlet. This type of outlet is usually a 240-volt, 30-amp outlet with a special configuration to match the dryer's plug.
Using an extension cord with a dryer can be unsafe and may lead to electrical hazards. Dryers draw a significant amount of power, and using an inadequate extension cord can cause overheating, voltage drop, and potential fire hazards. It's best to have a professional electrician install the proper outlet for your dryer to ensure safe and efficient operation.