Be aware that the entire Tokyo train network closes down for several hours overnight and factor that into getting back to your accommodation. You can check the last train times for each line via the Hyperdia train timetable app or website, however it is best to avoid getting the very last train as these tend to be packed with people in peak-hour volumes as it’s the last chance for everyone to get home.