No, you cannot sleep with a pillow underneath the knee. This will keep your knee bent throughout the night. You can sleep with a long body-length pillow under the entire leg for comfort, but the knee has to be straight.