No, because it would defeat the entire purpose of having available shelters or housing in the first place
These establishments are meant to be much safer than having to live in a public park or woods. However, I don't believe that the penalty for doing so anyway should be a 'major' criminal offense.