Yes, cockroaches can fly. Cockroaches come in two varieties: flying and non-flying. Although the majority of cockroach species possess wings, they are unable to use them for flight.
Most cockroach species have evolved to be significantly faster when crawling than when flying. However, there are certain situations where they may choose to fly instead.
Flying cockroaches generally fly in situations where they need to escape from danger, such as when they are being chased by a predator or when their habitat has been disturbed.
Roaches may also fly to find food in situations where their usual food resources become scarce or depleted. For example, if a cockroach infestation has consumed all the available food in an area.