Yes.
“Completion of a minimum of 30 hours of college coursework. For most students, this will require two semesters on the IU Bloomington campus. We include the credits from any college-level coursework on your transcript.”
AP credits count as college-level coursework.
You just have to make sure you take the required credits in Bloomington.
https://kelley.iu.edu/programs/undergrad/admissions/current-iu/index.cshtml