We can enact a law anywhere, anytime...
If I remember my legal training, Lord Denning IIRC, pointed out that laws can be enacted against anytime, place, thing. The example was , if the UK passed a law banning smoking in Paris then so be it, as soon as one of those transgressors entered in our jurisdiction we could lock'em up!
The only places we cannot legislate are those we have explicitly made a law to say 'we cannot legislate' ie South Africa, and Canada's constitutional reforms.
and with that PUB!