Is tramadol used for cancer pain?

Yes. Tramadol can be an effective pain relieving medication, including for cancer patients.
Yes. Tramadol is used by many oncologists and palliative care physicians if the pain is mild to moderate and the patient/physician is trying to hold off on narcotic pain medications for whatever reason. Usually if increased doses of tramadol don't help cancer pain, narcotic pain medications are usually started.