I don’t know if you can get an A in the class. Depends on how this exam is factored into your final grade.
This one exam will not keep you out of medical school.
How you react and adapt to setbacks is important. Think about what will you do different next time.