Yes, you can. AP classes are not required to be accepted into medical school. You will need to take pre-med classes in college in order to apply for medical school. You should focus on doing well in the pre-med classes and scoring well on you MCAT.
Here's a good link: https://www.princetonreview.com/med-school-advice/7-tips-for-pre-med-students
If doesn't matter whether you attend a 2 year community college or a 4 year college/university immediately after high school. A 2 year college is often cheaper/more affordable. You can then transfer to a 4 year college/university to complete the last 2 years.
- College, pre-med classes and MCAT: 2 years community college + 2 years university OR 4 years university
- Medical school
- Residency training