No, they don't - flags will stay there forever. However, editors and mods can manually erase flags on a post if it doesn't break any rules, so that's most likely what happened. The only other possibility is that the person who flagged it removed their flag.