Primary cancers should be coded based on the original site of the tumor. For secondary or metastatic cancers, coding should reflect the site where the cancer has spread. It is vital to differentiate between primary and secondary cancers to ensure accurate treatment planning and prognosis.