content: Yeah, malware can open ports and nmap is one tool that can be used to discover them.  If I wanted to install a control software on your computer and you were nmaping it routinely there's a good chance you'd find it.