No. By the Balfour Declaration, legalized by International treaties, Britain pledged itself to laying the foundation of a Jewish State.
The British act of making Jewish immigration illegal was in itself illegal.
But Britain didn’t make Jewish immigration illegal. It set a limit on yearly Jewish immigration that the Zionists considered too low, which it did partly for practical reasons of where are you going to put all these people, but mostly because of Arab pressure.