Yes you can as long as the electric blanket is on top of the foam and not underneath it. It is best to have a sheet or cover in between your foam and the electric blanket.