Swallows generally feed on flying insects and catch them mid-air. It's unlikely that cockroaches are found within the areas that they hunt
I'd be astonished if one even tried. They're simply too big when they can fly.
I mean American cockroaches. The huge flying ones that are also mistakenly called "water bugs" and "palmetto bugs" in Florida. I hope a bird specialist or an entomologist can answer accurately!