I saw an incident (women pros) where one gal had a really long putt, they pulled the flag and then put it back in for two others that were on the first cut.
You’re allowed to leave the flag in if you can’t see the hole. But has to come out once the ball starts moving.