it's very likely that you'll have to check-out and in but it will be at the same time and you'll be able to keep the same room (if you booked the same category of room for the 2 bookings). Just advise them of these 2 consecutive bookings when you'll arrive at the hotel and they will tell you how it will be handled