Yes, it is recommended to get the warranty, however, since you can purchase it within the first year of device ownership, it's best to get it at as late as possible. This way, if you do something in the first year that would have voided the warranty (e.g. spilled liquid on it, dropped it, cracked the screen, etc.,), you won't have wasted your money.
Learn more about AppleCare here.