How to separate Master from data node with rolling restart?

Currently I have 4 node cluster and each node can be master. I.e: using default setting plus N/2 + 1 quorum setting.

Now I want to setup dedicated master node.

Can I simply set "transient.routing.allocation.enable": "none" then roll restart each node and make sure to point to the dedicated master and also set master to false?