The position of the knee depends on the specific injury or condition. In general, it's advisable to avoid prolonged periods of keeping the knee completely straight or bent. Gentle movements within a pain-free range, along with proper rest, can help prevent stiffness.