I know that energy stored in electric field / unit volume = $\frac{1}{2} \epsilon\,E^2$.
so can I say that for any configuration calculating $\int \frac{1}{2} \epsilon\, E^2 \,d^3r$ over whole space - gives me the potential energy stored stored in the system
for instance for $Q_1$ and $Q_2$ ....separated by distance $d$,
$\int \frac{1}{2} \epsilon\, E^2 \,d^3r$ over whole space $= \frac{KQ_1Q_2}{d} $?