A UK limited company must have a UK registered office address. If you do not live in the UK or if you're a non-UK national, you can still form a UK company. The director and shareholders can be of any nationality and live anywhere in the world.
If you open a virtual office you're able to use it as your company's registered office.
If you open a virtual office you're able to use it as your company's registered office.