Probably a crazy question...

...but I've been holding my breath in spurts of 20-30 seconds throughout pregnancy whenever I'm around something I don't want to breathe (cigarette smoke, gasoline, for example). This probably happens 3-4 times a week. This won't hurt the baby by depriving them of oxygen right?