No, this is illegal. Before buying a mobile phone, you should check whether the mobile phone is registered with the authority or not.