Yup. Quite a strange effect, and quite funny. If I recall correctly, it's because when you are looking at a colour, your brain (relatively) slowly gets used to seeing that colour there. When suddenly, it's no longer there and replaced with white/grey, your brain records that as being the opposite colour in the spectrum, until your eyes adjust again.