Can a Japanese "Pokemon Gold" Virtual console game be downloaded to an American 3DS/2DS?
Games are region locked, you will need a code for the region that your 3DS/2DS is from in order to download it. In other words you'll need a Japanese console to play the region locked Japanese games.
It's the same principle for Pokemon event codes in later games.