Cockroaches are actually very smart. They can learn and remember different things. This is one of the reasons why they are so difficult to get rid of.