Yes. That is science.
The candle burns (approximately) all of the oxygen, reducing the volume of gas inside the cup by 20%, which causes the water level inside the cup to rise in order to equalize the pressure of the gas inside the glass with that of the atmosphere.