Yes, you can stay in Magome. There are very few overnight options and all inns have traditional Japanese rooms with futons and shared bathrooms. Magome is ideal to stay if you are hiking the whole Nakasendo trail and need a place to stay for the night.