No, Running the extension cords under the mattress is unsafe. It can cause fire Hazards due to the heat generated while under the mattress.