Possibly. Liens are paid based on their respective character, regardless of when a given lien was filed. Mechanic’s liens are always the first liens paid. Common law liens are second. Mortgages are not true liens - they are forms of chattel. IRS Notices of Lien are not liens at all. Therefore, a properly recorded common law lien will secure the lienor’s interest in the
liened property. Neither the IRS nor any other party (including a mortgagee) will be able to obtain clear title to property that has a common law lien recorded against it, until and unless the common law lien is paid.
However - and the reason I say possibly - the IRS is staffed by criminals and thugs who do not obey the law. The courts are staffed by criminal judges who do not obey the law. The government is staffed by criminals and thugs who do not obey the law they have sworn to uphold. There are never any guarantees of success when dealing with thugs and criminals.