Why not? It will work.
But you can only use R3 and D1 connected to ADC pin.
Put Vdd as reference, take sample voltage, and, for larger Vdd ADC result will be lower, and for lower Vdd result will bi higher.