Having some code on Github is helpful when looking for a job.
I see the problem. Most entry level programming jobs today either require a college degree, or they're for very low level web programming. Now, if you're competent at making basic web sites and the front end or back end of a business application, that's a saleable skill. Although one that several million other people already have. Also realize that about half the job is figuring out what the customer (your boss, probably) really wants.
If you hung around a research environment, and you know a little programming, did some soldering, and know which end of a capacitor is positive, but didn't go to college, that's not really a saleable skill set any more. In 1980 it sometimes was.
Useful reading: https://daedtech.com/programming-job-without-degree/