Can two primary drain lines be interconnected?

What about two secondary drain lines?