I was expecting a 5 on an AP exam VERY confidently but I only got a 3...?

This happened to me recently with my APUSH exam. I am a straight A student and did very well in the class, and our school has always done very well on AP tests. However, I only got a 3. It’s the worst feeling, isn’t it? Will you still get college credit?