God mode makes you invincible to most forms of damage. You can still die via drowning when in god mode, so if you do not wish to drown, you will need to use the InfiniteStats command.