Sure you can, as long as you pay your reserved number of nights there is absolutely no problem, like stated in an other response they couldn't care less the moment you pay what you're due its allright. No, it is not against hotel policy to book a room and leave the room for a mini travel and come back.