Leg pain

I am 21 weeks pregnant and have had a bad back for a while because of the job I have worked in for years. I have been getting shorting pain from my back and sometimes shoulder down to my upper thigh. I think it is all related to back pain but am wondering if it is made worse during pregnancy. It is so bad sometimes I can barely put my leg down. Thanks