Yes, it may still be valid but there is a set criteria for this. E.g. the person still has a UK bank account or retained residential status in the UK.
If you currently have cover and have moved abroad, you must call your insurer and inform them of this. If for example you have moved or are moving to country where there is risk of war, you may need to look for a new policy as you may no longer be covered.
Many people decide to take out their life insurance when they are younger but then they may decide to relocate to another country, it is always advisable to contact your insurer to let them know so that you know that you are covered.
As with everything in your life, it is important to review your policies on a regular basis.