Anyone living in the UK can register with a GP. Your immigration status is not important. The NHS makes that clear in their guidance.