Yes, the sentence is correct. In that sentence "should" means "if".
It's interesting, isn't it? If you think of "should" meaning "ought to", then it doesn't make much sense, but if you think of "should" being similar to "would" this usage might be easier to understand....?