Stop in for a cup of coffee

I never did learn that rule. A before vowel and an before a consonant. You turning into (a) Kerndog?
What’s a Kerndog?