# potential energy of a dipole?

The very popular from of potential energy of the dipole is $-P.E$. But in the derivation of it, we have negelected the potential energy of the pair of charges constituting the dipole. will this not affect further treatment when we try to apply this to understand aligning of molecular dipoles in electric field? If yes, then how will the modified potential energy function look like?

-