Not always. At some point, the cost of enforcement becomes too high and unfeasible.
An example of what I’m talking about is the black market for dollars and the use of bitcoins by Venezuelans to illegally dodge currency controls.