I had a computer class for 8th grade, I played games 75% of the time because I finished my powerpoints way faster than everyone else.
Yes, my teacher knew and no, she didn't mind.
EDIT: I wasn't the only one. Nearly everyone in the class finished within the first 15 minutes, and played while they waited for the kids that probably hadn't touched a computer before.