Should I take a job offer if im not comfortable with the late hours due to taking public transportation? (i have social anxiety)

Maybe. Your safety is always first. However, it is important to stay active. Having a job is always good. Develop a routine (this will help you relax, to focus, to create consistency and give you a better chance to suceed). Focus on what you want: tell yourself what you want, not what to avoid. Plan for the present moment one step at a time. You can do it. We can help with your social anxiety.