yes a company can give loan to another company u/s 186 of the companies act 2013 however before doing so it needs board approval with unanimous resolution+ approval of members of company by passing special resolution(if loan is in excess of limit specified) + there must me no defaults in payment of deposits by the company making such loan