Is fainting a normal thing?

I was in the shower last night when I fainted. I put it down to having the water too hot and the steam got to me.

Anyone else had that?