There is no easy answer to this question. While squishing a cockroach may seem like the best way to get rid of it, doing so can worsen the problem. When a cockroach is squished, its body releases a pheromone that attracts other cockroaches. In addition, squishing a cockroach can also cause its eggs to hatch. If you decide to squish a cockroach, clean the area thoroughly afterward to prevent further infestation.