There's certainly an element of luck. But every individual, no matter how unlucky their circumstances, has the opportunity to make good or bad choices from that starting point. It is not like people are powerless victims of the unlucky birth they had.
A person born in a war torn country who is killed at a young age doesn't get much opportunity for good or bad choices. That's what I think of regarding bad luck.