You just need to be careful that the extension cord is heavy-duty and can handle what your A/C is putting out, because it's possible that you can use an extension cord for air conditioners. You should compare the power of the air conditioner and the power of the cord to make sure it is safe.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.