Yes, you can use an electric blanket with a memory foam mattress. Just make sure to place the blanket on top of the mattress, rather than underneath it, to allow the memory foam to contour to your body effectively.