In addition to the temple, there are several good places to get a meal while you are in Narita-shi. Definitely worth the visit. The train to/from NRT only takes a few minutes.
Don't forget to change some money at an ATM so you can purchase train tickets, meals and such. A few thousand yen ought to do it.