This is a testament to the fact that the cockpit door is like a marriage: neither wide nor tall enough to fit through with a chip on your shoulder. Yes, the airlines know they have married couples in their cockpits and they're okay with it. I'm sure there are a handful flying together at each of the majors.