Yes,it will still work as a foreign Pokemon, and thus the Masuda Method should still work.
Source: using an action replay code for a Japanese Ditto on Black/White 2. The Pokedex registers it as a Japanese Pokemon. My sister and I have both successfully gotten shinnies in less than 200 eggs with our hacked Dittos