Can emerald version trade with red version and LeafGreen version?

Emerald can trade with Leaf Green but not Pokemon Red