Powering an Arduino/stepper driver system with one DC input

Could you power the 5v items from a 7805 with a suitable heat sink? I power a standalone 328 that way from a 12v supply.

...R