Yes- could be either. As others have said it depends on whether it's being used as a noun or a verb
Verb. Rooney came on and managed to affect/influence the team's performance immediately.
Noun. The effect/influence Rooney had on the game was significant.