@Yulianna0
You can either wait for someone to answer your question or experiment yourself!
I have two smoke detectors, one at each level of the corridors in my home. None in the bedrooms.
The s.d is very sensitive as whenever the kitchen door isn't closed and the grill is on, even a slight burning of toast or anything else will set it off.
The smokers I referred to always did it with windows open in the bedrooms. As mentioned, once I requested they stop and emphasized 'fire hazard', no one did it again....
I found it much easier to ask them to desist and give a second chance, than to initiate the stressful situation of enforced departure. I've only done it once, but not for reason of smoking.