Does earning a P fulfill a prerequisite?
Yes, even if that course prerequisite has a minimum grade requirement.
If the underlying grade is low, please discuss with your advisor whether you will be prepared to successfully complete the next course.