You don't say "turn off" or turn on". Light should be connected
black to black and white to white and ground to ground. If you
connect white to ground it will work, but you are then using the
ground wire for an unintended purpose. Neutral is bonded to Ground
at the panel. Current on ground wire could cause ground loops and
may cause GFCI to trip if you have them in your house.