There are discs in your back that can press upon nerves that affect your leg, yes.
Look up sciatica, as well as dermatomes, dermatomes are areas of our body/legs that hurt, that co-incide with problems in our spine/discs.
If it hurts badly enough or persists long enough you may want to get a MRI done of your lurabar spine (lower back).