A related rule called the intentional drop rule (Rule 5.09(a)(12)) applies even when second base is unoccupied, and applies even when the batted ball is a line drive or a bunt that could be caught on the fly.
For the runners, an infield fly is little different from an ordinary fly ball.