In theory malicious software could do that in some cases.
Lets take videos as an example. If you are using a media player with an error that could be exploited to execute program code that is embedded inside a prepared (read: modified by the malicious software) video file, this could be one vector of re-infection.