Lenders will be unlikely to lend if a loan funds the deposit and if they do the rates at which they lend are likely to be higher. The reason is that you are taking out debt to fund debt.