While many species of flies are attracted to light, not all of them exhibit this behavior. Some flies, such as fruit flies, are more attracted to food sources and may not be as strongly drawn to light.