Wrong way usb connexion to MCP73831 lipo charger
Yes, this kind of protection against a badly designed connector is fairly usual. The only thing would be to place the diode BEFORE C3 capacitor, to make sure the input source (capacitive) impedance is within recommended value, to avoid potential instability of the linear regulator.