is this an ilegal formation?

-------ST---ST------
-----------------AMR
-------MC---MC-----
DML-----DMC--------
----DC---DC----DC--