Absolutely, you can do a tax return in Germany for the year you left the country. The Finanzamt will transfer you the money in your foreign account if you give them all the necessary information, and a specific request to do so. You will very likely support the costs of the transfer on your own.