The important part is to focus on the things you can control. Luck always plays a role, but your own actions decide how prepared you are to capitalize on lucky breaks when they arrive.
Luck is important, but it’s a mistake to try to attribute the success of others purely to luck. Someone winning the lottery is lucky. Someone who gets hired because a company noticed their quality GitHub commits to a project relevant to their needs is also lucky, but their success isn’t the result of luck alone.
Yeah there's also thousands of potential opportunities like that over course of years, each with the potential to open new doors. One lucky break does not success make and a lucky break without the talent or drive to back it quickly collapses.
Luck is important, but it’s a mistake to try to attribute the success of others purely to luck. Someone winning the lottery is lucky. Someone who gets hired because a company noticed their quality GitHub commits to a project relevant to their needs is also lucky, but their success isn’t the result of luck alone.