Upvote:8
In normal times yes, but due to COVID Japan remains essentially closed at this time, with only Japanese citizens and close relatives allowed to enter. So I'm afraid you'll be stuck in the airport.
Narita does have day use hotel rooms, but it is not a 24-hour airport, so I'm actually not entirely sure your connection is legal. I would suggest you double-check with the airline.