Yes, it is legal. Since November 2014, Michigan state residents have been able to play the Michigan Lottery online. At first, sales were limited to Keno and instant scratch-offs, but by January 2016 this had expanded to draw games like Powerball, Mega Millions, Fantasy 5, and Lotto 47.