Yes, you can get a Dubai visa with any prior criminal record only if the records are cleared. If they are not cleared, you will not be allowed to get a Dubai visa.