Yes, this is the ruling if you were able to pay the loan, it was better to pay before going and yes your son was able to gift you the expense of haj if he had performed his haj in past or had to go with you because one has the potential for haj first he has to perform his own wajib haj.
If in past you had the potentiality for haj and there was not any loan at that time and you were not gone for haj and now loan is due then still you have to go for haj because it was wajib and not performed.