Yes, transient or acute insomnia caused due to stressful events of life goes away after the stressful phase is over. Persistent or chronic insomnia needs medical treatment.