yes amount of loan can be taken as exemption..
"Under Section 54 – Any Long Term Capital Gain, arising to an Individual or HUF, from the Sale of a Residential Property (whether Self-Occupied or on Rent) shall be exempt to the extent such capital gains is invested in the:
-
Purchase of another Residential Property within 1 year before or 2 years after the due date of transfer of the Property sold and/or
-
Construction of Residential house Property within a period of 3 years from the date of acquisition
Provided that the new Residential House Property purchased or constructed is not transferred within a period of 3 years from the date of acquisition"
Also in the the quantum of deduction allowed,the Loan clause is not specified.