Yes, you can. You will lose your deemed domicile status if you stop being a UK tax resident for at least six tax years.