yes you can, as one of my friend was working in KSA and his employer was not wiling to cancel his visa, but after sometime he came on vacation (uae) got his residency stamped. still working since 2 years now.