AP Physics II without taking AP Physics I

From the College Board:

https://apcentral.collegeboard.org/courses/resources/planning-new-ap-physics-courses

Additionally, the HS might set its own prerequisites. Without knowing the content of the summer course, I can’t say if the background is sufficient or not.