You can use an extension cord for your new appliance if you need immediate relief from the heat, but a window air conditioner should be installed close enough to an outlet to allow the cord to reach. It's important that the one you choose is heavy enough to handle the load.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.