Yes! That's exactly how it works

If you have internet you can hook your DS, DSi, 3DS, ect- Up to your internet. It's very easy, all you do is enter your Internet IP (Usually It's on the Internet Modem) and a security password. Then you can hook up with people from all around the world.