It's illegal to do so but you can still do it. Statewide authority can't scan all packages.
It's very similar to Cannabis in the US. Illegal federally, legal in e.g. Colorado. If you walk by a state police cop and a federal cop next to each other with a joint one of them can't arrest you but the other can.