Even if a black hole were to replace our sun, Earth and the other planets would orbit the black hole as they orbit the sun now, not get sucked in.