That might lead to troubles on the MS-20. Some kind of midi overload could happen in some situations. Best to use a switch box
OUT —-> …………… ……| …………… …… | Switch box —> MS-20 THRU—>