Can a loan co-signor be responsible for a debt if the other person declares bankruptcy?

Yes.  The lender can require the co-signor to make payments on a loan once the principal has declared bankruptcy on the credit.  This makes it extremely important when considering co-signing a loan:  Be ready, and able, to pay the loan in the event that the principal signor defaults.