Yes, Hatta is in the emirate of Dubai, though you do drive through parts of Sharjah emirate to get there as it's an enclave. There are no formal borders to cross though, you get there by private car in under 2 hours from most parts of Dubai city.