Yes, Apple products are sold officially through Amazon by Apple, and also Amazon's renewed and warehouse schemes. As long as you go through Apple's official store, you can be sure that anything you buy from them is real, working, and legitimate.