Yup, the major reason I smoke at all is to treat insomnia and midnight anxiety attacks that used to wake me up and KEEP me up most of the night.