Furthermore at power up and reset all pins are set as INPUT, so there is only a problem if you deliberately program both Arduinos to use the relevant pins as OUTPUTs - the real risk is if you use an Arduino for something else, then connect it to this circuit before reprogramming it correctly. Add a 1k resistor if this is a risk, otherwise its not needed. Common the ground lines of course.