In the USA (I assume, I don’t know where you are a student), it doesn’t matter one bit what classes you take in high school in order to be accepted into medical school. You will need certain pre-requisites in college (or in a post-baccalaureate program) to be admitted. These typically include two semesters of calculus, inorganic and organic chemistry, several biology courses and several physics courses. The MCAT test has components of these courses embedded in the exam, so, certainly being knowledgeable about these subjects will help get you into medical school.