@wild boar No, notice they are (or were, at least) fully enclosed except for a downward facing opening. A Barn Swallow nest is more of a standard cup shape.
@wild boar While neither species has an issue with nesting close to others of their same species, Cliff Swallow is actually far more likely to nest colonially than Barn Swallow.