Paying debt for acquired company

Salam Alikum,

I have been wondering about this question for a time now

If you acquired (bought) a company that is halal to invest in, but this company does have a small amount of debt (or small enough to make it Sharia Compliant)

Is it permissible to pay the debt in this case?