Of course there were smoking and non-smoking sections on airplanes. The same air recirculated through the entire airplane, and the non-smoking section began the very next row after the smoking section.
Bacteria and virus loads are far more dangerous. Cigarettes take longer than a couple weeks to kill.
The question is how long does it take for all the air in the plane to be replaced.