yes Company B can avail a loan against the property of Company or u can say Company A can give security against the loan availed by Company B. Also refer section 186 of Companies Act 2013. Company A will also need to file CHG 1 for creation of charge over property.