Black holes aren't cosmic vacuum cleaners, they're subject to gravity and orbital mechanics just like any other celestial body. They only way in which they'll suck up a star or planet is if the black hole passes close enough that the snack in question ends up below the event horizon (functionally speaking, a collision course). Otherwise, it'll just slingshot straight by like anything else.