This is known as port-security, an unused port should be disabled, to ensure a malicious user cannot plug an unauthorized device into it.