No, and that is the common misunderstanding. You do not need a code from Nintendo. What you need is the security key for your own wireless router, which is the WEP or WPA password printed on the router or set when you installed it.
Enter that in the DS connection settings and it will connect. The older DS only supports WEP and open networks, so a WPA2-only router will need its security mode changed or a guest network enabled.