The majority of medical schools do not accept AP classes as a pre req. Meaning you will have to take chemistry at a 4 year university.
Additionally, you do not receive AP college credit unless you receive a 3 or above on the AP exam (administered in May if I remember). Some colleges are even pickier and require a 4/5. But in any case the grade from this course wouldn’t transfer and as I said before you’d have to retake the class of med school is the goal.
So if I were you, I’d not worry and just try to learn/retain as much material as I can.