AFAIK yes, certainly that is often how commercial installations are done. Though without looking I don't know if the regs have anything to say about it in domestic situations.
You can get manifold systems designed for this eg.
http://www.marleyplumbinganddrainage.com/range/1515/1498/wc-manifold.html
Though depending on the installation, might be just as easy to use standard soil pipe fittings - you can get some stuff in white, and be creative
Don't forget the pipe between the two will need to have a fall.