Yes, it is safe to buy an AC online from a reliable source like Amazon. It should come from a verified seller, and you should always prefer a reputed brand to avail a long-term warranty. Also, check the user reviews to confirm the pros and cons. If you receive a faulty product, you can return it as per the terms and conditions of the selling website.