Compensation of forward voltage drop of a diode - software
Well, no.  In this case, trying to compensate for diode drop with software and trying to achieve high accuracy doesn't sound like the best idea.  You would need to know the current and temperature of the diode to be able to calculate the voltage drop.

Connecting the voltage divider to the voltage that you actually want to measure would be a better idea.