Can an HOA put a lien on your condo?

Yes.

The association can file a lien on your title to force you to pay a debt that you owe, usually unpaid monthly assessments.