Controlling a DC motor, motor drive through an Arduino board and 4Duino-24 board

Hello,

Let's say that I need to control two DC motors, motor drive using two development boards Arduino Uno and 4Duino-24. But, using only one at a time. I will set up a toggle switch to switch power to one of these boards. For this requirement, Is it possible to do the wiring as seen in the following?
Will it make any issues to the board?

Thank you!
Regards,

RmHaroon:
Hello,

Let's say that I need to control two DC motors, motor drive using two development boards Arduino Uno and 4Duino-24. But, using only one at a time. I will set up a toggle switch to switch power to one of these boards. For this requirement, Is it possible to do the wiring as seen in the following?
Will it make any issues to the board?

Thank you!
Regards,

Did you forget something?