Has this happened to anyone?

I am trying to quit smoking and I think I have more reason to now. I went out to smoke and couldn’t finish a full cigarette and came in brushed it off and started getting a headache and nauseous from the smell. Which I am a previous half a pack a day smoker and I’ve gotten down to two a day (I can’t even think about it right now) I started making chocolate chip cookies which I had in the freezer and ate two with milk and cake to bed. Anyway I just got up and gagged all the way to the bathroom and then just stood in my bathroom just feeling sick. I sprayed my entire room with spray and changed clothes just to get away from the smell. I have never gotten sick over the smell of smoke or anything could this be because I got pregnant this cycle?