Note that the Vin pin is not protected by that diode, so more care is required if powering via that pin.