Hello, Melvin,
You are correct that you can invest with the already deposited funds in your account for the current tax year.
On the contrary, you can contribute the remaining of your allowance until the end of the current 2021/22 tax year, but you won’t be able to deposit new funds after the tax year in which you have moved abroad.