Like most thinks, they have an effect and increase the odds, don't guarantee that lack of sleep during your life will assure you get it, just increases the chances as does age, which maybe a factor with such occupations you mention.
I'd imagine shift workers would be a source of study about sleep impact.