While programs cannot install themselves on your iPhone and run malicious code, it is possible to install untrustworthy apps that might use any information you give it for malicious purposes. Avoid downloading suspicious apps and never enter personal information into these apps.