They may be able to. I have heard of HOA's foreclosing, and their action holds priority position above the mortgage lien in many cases. I would try to work something out and settle up with the HOA before it gets there.... more
Are you asking about a short sale? if so....talk to your agent to get some specifics. But in real estate everything is negotiable...typically the banks were paying past due items like HOA but lately they have pushed back and asked they be paid some other way. This can be from you or the buyers.
Again....talk to your agent, or if you have not started that process, I'd be happy to talk with you privately to give you a sense of what to expect, why don't you give me a call/email and we can talk.