@Bernadette Mary,
Centipedes are opportunistic hunters and some of them may occasionally eat a cockroach, but in general I think they prefer other bugs (easier to catch). Also, I don't think even a couple of centipedes are likely to make a dent in a cockroach infestation. Why do you ask?