Sure, but still needs second unit side entry beside the machine, check below picture.

And what will be the mold structure ?

Have to use hydraulic cylinder core pulling, after first color inject, cylinder work to cut off first color overflow into second color area, also after core pulling, then second unit inject. Motor can not replace cylinder here, as motor just keep on rotating, can not realize the limit effect, to prevent first color overflow.