Yes it can be used. Any game from gen 4 (heart gold/pearl) and up work on any DS console as long as it has a game slot :)
I have Pokemon diamond on my 3ds i’d Highly recommended it and I also have Pokemon white 2 (great game, and challenging too)
Also you should be able to get virtual versions of other Pokemon games as well so, enjoy!!!
Hope this helped