I think the title says it all.
My question is partly motivated by the fact that this makes "element"-style reasoning with generalized elements possible; but also motivated by the result in itself.
Here's what I attempted :
let $f: A\to B$ be an epimorphism, $g:C\to B$ any map, and assume their pullback is:
$\require{AMScd} \begin{CD} P @>>^i> C\\ @VV^hV @VV^gV \\ A @>>^f> B;\\ \end{CD}$
Take $\mathrm{ker}f: \mathrm{Ker}f\to A$, and an idea would be to lift this along $h$ and show that this yields someone whose cokernel is $i$: in doing so, $i$ would be an epimorphism.
In analogy with $\mathbf{Ab}$, the kernel of $i$ would be $\mathrm{Ker}f\times \{0_C\}$ (seeing $P$ as a subgroup of $A\times C$) and so this would make sense.
So one may consider the map $\delta: \mathrm{Ker}f \to P$ induced by $\mathrm{ker}f$ and the $0$ map to $C$ by the pullback-property ($g\circ 0 = 0 = f\circ \mathrm{ker}f$).
I would then like to show that $i$ is the cokernel of $\delta$. But this is where I get stuck: $i\circ \delta = 0$ is clear from the definitions, but I can't see why the induced map $\mathrm{Coker}\delta \to C$ should be an isomorphism. I know it's enough to show it's a bimorphism (in an abelian category) but I can't see either part. I'm guessing that's the moment I start using the fact that $f$ is epi (I haven't until now) but I don't see how.
If the square you gave is pullback,then there is an exact sequence $0\rightarrow P\xrightarrow{(i,h)^T}C\coprod A\xrightarrow{(-g,f)}B$.since $f$ is epimorphism,we have a short exact sequence $0\rightarrow P\xrightarrow{(i,h)^T}C\coprod A\xrightarrow{(-g,f)}B\rightarrow 0$.
Hence we know the square you gave is pushout.Hence it is not difficult to show $i:P\rightarrow C$ is epimorphism.
In general,for any pullback square as you gave,the induced morphism $\overline{g}:coker(i)\rightarrow coker(f) $is injective.Hence your question has an immediate answer.