Yes.
Loans incurred by the Corp don't impact shareholder basis (even if guaranteed by the shareholder, as Phoebe pointed out).