This must be one of the most stupidest posts I've ever seen.
No, this doesn't happen, you dumbfuck. You probably were hungry and lost HP but then you had godmode on so it set your HP back to what it was with the godmode on.
:face_palm:
Please stop posting things you don't have knowledge...