Can I eat the marijuana from my vaporiser?

So hear me out, if my vaporiser is basically a small oven then whats to stop me from activating the thc with it then eating the cooked marijuana? Would this work as edibles?