As long as you haven't changed anything, like the kernel, rom, bootloader, or removing stock programs, it should update. Make sure you have enough battery or plug it in first. Did you temporarily flash twrp?