I was employed from Dubai (VISA) but worked and lived in Abu Dhabi... Yes it can be done but getting driving permits, VISA medical (renewal was allowed in a different Emirate, but costed more and different / additional tests done), ID card etc needed to be done in the Emirate where your visa is issued.
Renting in another Emirate was the easy part