Cockroaches can come out when the light is on, but they strongly prefer not to! I stayed in a hotel in San Diego once that was infested with roaches (great pick, eh!) I saw several roaches until I hit the lights. They all disappeared very quickly.