'If'' is used in its basic meaning. The sentence is correct. It's a past conditional sentence, with if indicating a past situation that cannot be verified at present time.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.