Wouldn't recommend. The immigration lines on arrival at DXB are incredibly painfully long during that time of the day, and keep in mind, if you're looking at a taxi/bus to catch, expect a 2 hour hop over to AUH, considering the fact that the Sheikh Zayed Road is incredibly crowded at that point of the day. You'll literally be arriving in AUH with minutes to spare. I would recommend you to look at the next departing flight out of AUH, or if you really want to get out of UAE the same night, I would advise you to check out Air Arabia. SHJ is much closer to DXB than AUH is.