Syncing two ARDUINO

Hi. I'm doing an autonomous robot which I have to sync to ARDUINO for 2 motor driver module and 4 DC motor. I have seen the solution of syncing two ARDUINO using master write and slave receiver which in this link

Master write coding following by the main coding to make my motor spin I have to place it at my first ARDUINO ( master write ). Should I just place it in first ARDUINO ? For the slave receiver (2nd ARDUINO ) just the code for slave receiver code only?