AP physics isn't required, but you will need at least two semesters of calculus-based physics in college (AP physics usually can't get you out of that since it's not calculus-based). But it can be a good introduction to the subject, and if you're not sure you'll do well in physics this is a good place to start, because failing college physics is a lot worse for engineering majors.