I have upper back pain, chest pain, and pain at top of left arm. I smoked for 20 years, quit 5 weeks ago, could I have lung cancer?

Honestly there are many things that you could have including cancer or heart problems. But I would first recommend that you see your primary care physician as soon as possible for evaluation.