Yes! To have an account you'll need to be a UK resident for tax purposes.
However, you won't be able to open an ISA, LISA or General Investment Account if you are a Canadian or US citizen or resident for tax purposes.
To open a Dodl Pension, you cannot be a Canadian citizen or resident for tax purposes.