UPnP is used by programs to open ports in the router firewall. This is used (for example) by p2p programs to allow the file sharing. Switching it off will not have any effect on connecting new devices to the router.
It's true that UPnP is potentially a security risk. To eliminate that risk you should turn off UPnP and manually configure the ports which are required to be open for specific applications.