Charging a LIPO 3.7V 1400mAh battery using the CM3's RK817

If i supply 5v to the 5V_INPUT pins, will it charge the battery that is connected to VCC_BAT, or will it fry the board?
there is also USB_5V_IN which is supposed to be the pins that charge the battery, but i dont want to have 2 seperate USB-Cs or a switch since its inconvenient, hence why im asking if it of course, wont fry the board, but also charge the battery

This is for a custom Cm3 carrier board im designing, taking advantage of the 3rd b2b connector.