You can receive any care you need, but if you are on a visa that doesn't allow NHS access, then you'll need to pay out-of-pocket. It is really important that you insist on paying, even if the surgery doesn't want to charge you, because if you have unpaid NHS debts it can prevent you from getting future visas.