Is there a way to mirror and duplicate in one action?
Use a mirror modifier.

All you need to do is add the mirror modifier, and set its Axis to Y... 

Assuming you have the object origin at the scene center, and your cube positioned where you want it.