If the program in question isn't malware itself then no, 9 chances out of 10 it won't uninstall the specified program but it will remove the malware from the host machine. It happens often that malware is installed from real software due to advertisements, this is by most times not meant from software distributors and they heavily frown upon the matter and will remove the advertisements if they start doing so.
You can protect yourself from this by using an application such as
Unchecky.