Ap credit scores

If I passed the ap chem exam and got credit for general chemistry at my school will i need to retake it if it’s a pre req at the UC I want to go to or does this mean i dont need to take chemistry again?