Wikipedia says "In 1912, American Dr. Isaac Adler was the first to strongly suggest that lung cancer is related to smoking." but I guess there could be other less strong suggestions before then. Regardless, I think it is true that it wasn't conclusively proven until decades later, and then took some more time for the general public to be aware.