If you really need the money for basic survival, fine, we can argue about the morality of it. But even with a possible recession looming, it's unlikely that the price of a hotel stay is going to be the difference between life and death for you.
It's unlikely you are in basic survival mode yet, unless you've already lost your job and are living paycheck to paycheck and there are no available government programs to help you right now and no friends or family to turn to.