No, (Even if there are some views that if you repay your loans with capital gains amount, provided the house is purchased not more than one year before the selling date, you get the exemption.)
There is no express provision in section 54F saying that deduction can be claimed in the event if repaying housing loan.