Driving with a Sleep Aid Experiment

Is it safe to take a sleeping pill without a full 8 hours of sleep? The Doctors test the waking effects of sleeping pills.