Depends, a water based nail polish might get sealed and not cure. I have encountered uncured nail polish on threads a few days later.
Loctite and such cure by a chemical reaction triggered by metal. My understanding is anodized aluminum or metal coated in oil/wax can prevent that reaction.
Blue cures just fine between anodized scope tube and anodized rings, and the excess cures on the tub outside the contact area fine. At least after cleaning with acetone.
Anyway, nail polish and paint pen work. But so does Loctite. Both can fail. Currently I use loctite on surfaces I want to bond and nail polish to witness mark or seal out moisture.