It depends on how much you want to see in Nara. A day trip will be just fine for major sites in central Nara such as Todaiji, Nara Park, Tofukuji and Kasha Shrine, but if you want to see sites not in central Nara such as Horyuji, Toshodaiji and Yakushiji, then you should spend a night.