Yup. Even my supposedly egalitarian country had relatively recent legislation ensuring “white” immigration.
Apparently it was a surprise to the government of the time that Indians some Pacific islanders were British (at the time) and that upset some people who equated “white” and “British”.