You put the article "an" in front of a word (instead of "a") when the word begins with a vowel sound, including some words that start with consonants (hour, honor). Words that begin with a vowel...
In most cases, if I understand your question correctly, yes.
An example of this would be:
I like swimming, skiing, and sleeping.
These next examples are what would be incorrect:
I like swimming,...