Cockroaches are nocturnal creatures who like to stay out of the light. Yet, that’s not because light hurts them. Cockroaches recognize that they can’t escape or elude predators while they’re out in the open. Keeping lighting or a lamp on all night will not keep them away.