Can breast cancer cause upper back pain?

Yes. Unfortunately it may be related to vertebral or rib metastases.
Breast cancer. Shouldn't cause upper back pain unless it has spread to the bones in the back.