Ref. No. 1075/41-269
In the name of Allah the most Gracious the most Merciful
The answer to your question is as follows:
In the above mentioned case, you can take home loan, however you have to repay the loan at earliest to avoid more interest. You should know that taking home loan is not recommended in shariah.
And Allah knows best
Darul Ifta
Darul Uloom Waqf Deoband