In DFT the absolute value of the total energy does not have physical meaning, only differences between total energies have physical meaning.
It is possible to do the E vs. d curve in a single run by editing the script in a python code, but I strongly suggest you to avoid it if you don't know what you are doing. It is safer to do it in separate calculations.