I wouldn't. As said before, it could get too hot for the buns, and unless it is out of reach then a bun could burn themselves or chew through the wire.
I have one which has a 'tip short'......it swiches off if it is tipped over.
Not a good idea to leave it unsupervised though.