No UPnP does not cause lag. UPnP is a form of automatic port forwarding that can help to change your NAT type from strict to moderate or even open. UPnP has no real effect on lag (ping). UPnP is an alternative to manual port forwarding. UPnP is widely considered a security risk because it allows applications to automatically punch holes through your firewall.