It all depends on what kind of homework it is. I've never been able to study while high, because I just get bored then go do something fun. For doing homework, it all depends.

If I'm writing something from my memory/that innvolves my opinion, being high is fine. I wrote a journal for a class while blazed recently, and got perfect on it. Thank you, Cannabis.