Do you know the rule for this? What is your best guess?
Yes, that is exactly right. You use 'an' if the following sound is a vowel sound.
Remember, though, it is the sound, not the letter:
"An uncle", but "a university" since 'university' begins with 'y' sound.