Answer :
To "quarter" soldiers (or to provide quarter to soldiers) means to give them lodging, usually in a private home. This has been mandated by governments throughout history in times of emergency.
Yes it means to provide them with a place to live. It is usually in other people's houses and the people get no pay to house them there.