Yes, to me the sentence simply sounds wrong without the word 'for'. You could say this, however: It was the third time in two years that Gerry had had back surgery .
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.