It is generally not recommended to use an extension cord for a microwave. Microwaves draw a significant amount of power, and using an extension cord can lead to voltage drop, overheating, and potential fire hazards. It is best to have a dedicated outlet installed near the microwave to ensure safe and reliable power supply.