Hi Hafu.
The code works depending on what card it is. Some cards work worldwide (all regions/servers). Just say you use the code on an NA server, it would then work for euw, eune etc. But some cards are strictly for one server only, meaning you cannot re-use/sell it again.
TL;DR: It should work seeing it's universal.