Note: I presume that the concept of a Quasi-static process explains
this question.
Somehow, yes, in the sense quasi-static means a sequence of infinitesimal actions during which each variable can be considered a "constant". It's all about summing a sequence of infinitesimal values.
You can imagine that the pressure $P$ is constant during a short (infinitesimal) time. This results in a change of volume we write $dV$ and the work done by the system during this infinitesimal time is $\delta W=PdV$. (note: this in only valid for reversible work, but all courses start by describing reversible work only, so you don't have to bother at this stage).
Of course, at the end of this infinitesimal change, the pressure may have changed and became $P+dP$. So the question could be: "why do we use $P$ in the formula rather than $P+dP$ or something in between?". This reasoning is just infinitesimal calculus. The answer is "it does not matter, use the simplest formula possible". Compare the two calculations:
$$(P+dP)dV=PdV+dPdV$$
$dPdV$ is a second order infinitesimal and we always eliminate them when a first order infinitesimal is already relevant. It's not even an approximation, it is mathematically irrelevant.
What I explained in not thermodynamics. You will find it absolutely anywhere physics does some infinitesimal reasoning. For example, the area between two circles or radius $r$ and $r+dr$ is $2\pi rdr$ : we multiply the length of the smallest circle by the distance $dr$. Why not the largest circle? For the same reason: it does not matter because the difference is a second order infinitesimal. See how it finally works to calculate the area of the disk:
$$\int_0^R 2\pi rdr=2\pi (R^2/2-0)=\pi R^2$$
It is just about getting used to infinitesimal reasoning, and how we can use the simplification "during an infinitesimal change, we can consider this or that is constant".
Now, during a non infinitesimal process, the pressure truly varies (in general) and the formula $W=P\Delta V$ is very false. Instead we need to sum all the infinitesimal values:
$$W=\int \delta W=\int PdV$$