Well, in many cases there are rules, but reading the rule closely, you usually find an "except", as in the case of the spelling rule for the dyad e and i: "I before e, except after c", to which there is an additional except, because there are a few words where e precedes i after c.
Further, the first rule, when you encounter a word you don't know how to pronounce (at least on the list I was given) is "Consult a dictionary."
Note, too, however, that there are more cases where words are pronounced differently by one set of English speakers than by other sets. Though I can't cite any examples at the moment, I frequently hear words pronounced differently by a speaker who comes from the UK than the same words are pronounced in the US.