Yes, you can book a hotel room and then leave the room for a mini vacation, and come back. At most hotels, once you have booked and paid for a room, you are able to use that room as long as you need, even if you leave the room for a short period of time.