As long as you get the master of law diploma, you can sign up for the law exam.
Before the implementation of the "Measures" (before April 28th, 20 18), graduates with bachelor degree or above in law major in institutions of higher learning with legal professional knowledge or graduates with bachelor degree or above in law major in institutions of higher learning may register for the unified legal professional qualification examination.