It all depends on the hotel's policies, but most hotels allow visitors coming and going, or even spending the night. Of course , unless there is a clear reason as to why the guest cannot visit. The staying guest must always be notified that they have a visitor and the guest will have to confirm.