Yes, and the student may do well on the test if the high school physics curriculum is well aligned with the subject test’s expectations. But some high school curricula are not. They may not include all of the topics that are on the subject test.
On the other hand, students can be confident that the AP Biology curriculum, which is reasonably well standardized and happens to be a good match for the subject test’s expectations, provides good preparation for the subject test. Also, those students who took regular high school biology before taking the AP course (as is required in some high schools) have the advantage of having two years of preparation in biology before taking the test instead of just one.