Agree with S2000. There’s no reason you can’t.
Only thing I would add is that there is no problem because you are comparing apples with apples. With your stated returns, a dollar invested in Fund A is worth $1.85 at the end of 5 years; while a dollar invested in the S&P is worth $2.05. So you are essentially comparing the terminal value effects at the end of year 5. To see that this difference equals 20%, subtract the values and divide by the starting value, $1.00, i.e.:
(2.05-1.85)/1 = 0.20, or 20%.
One more thing is I would suggest picking a different fund with that piss poor return.