Should I get a shock if I turn off the light switch before installing a new light fixture?

I was installing a new light fixture - so I turned off the light switch. I still received a mild shock when I was attaching the ground and touching the metal housing of the new light fixture. Should this have happened or is there a wiring issue in my house? Would turning off the circut breaker resolved the issue?
5 answers 5