It makes sense for cockroaches, which make it their business to hide from you.
It's not even true for ants. If you find two ants in the kitchen, they were just there by coincidence. Ants aren't concerned with whether you can see them; if they're interested in something in your kitchen, they'll show up by the hundreds to take it away, and they'll be impossible to miss.