Yes, but having a law is cheaper than having a war
The law is pointless if the province really wants to leave.