Is it okay to transfer the property to someone else's name when you divorce?

Yes, yes, but if the transferred property is discovered by the other party and the husband and wife do not divide the same property, the court may also impose fines and detention.

Marriage Law

Article 47 If one party conceals, transfers, sells off or destroys the property of the husband and wife, or forges debts in an attempt to seize the property of the other party, when dividing the property of the husband and wife, the party who conceals, transfers, sells off or destroys the property of the husband and wife or forges debts may be given less or no share. After the divorce, if the other party finds the above-mentioned behavior, it may bring a lawsuit to the people's court and request to divide the husband and wife's property again. The people's court shall, in accordance with the provisions of the Civil Procedure Law, impose sanctions on acts that hinder civil litigation as stipulated in the preceding paragraph.