renting a hotel for now

so um i homeless right now and don't know where to sleep for the next few days.. can hotels let you live in the hotel room for awhile?