If you are asking about using the heritage/inheritance, before settling father's debt, then it is not allowed.
But if he is buying from his own money, then, it is Okey.
On the other hand, settling father's debt -if he did not left any heritage- is not the eldest son sole responsibility.