With cockroaches’ nocturnal way of life, most of them are indeed afraid of light. But not all. When the place is overpopulated, some of them will necessarily venture out, like crusaders or conquistadors. So the light won’t stop them, like the light of Christianity didn’t save Constantinople from them.