Leaving the country doesn't have anything to do with getting your tax back. The reason you get your tax back is because you in total you will have earned under the tax threshold for the year. Going abroad is simply the reason you will not reach that threshold. So yes, providing you do not meet it, you can apply for your tax back.