AP Calculus AB exam and Trig/Calculus class

I am taking Trigonometry/Calculus class next year can I take AP Calculus AB exam after that?

yes