All types of leukemia can have oral manifestations, including swollen and painful gums, especially in acute leukemia. However, swollen gums cannot be directly defined as a precursor to leukemia or any other cancer, only that they may be caused by leukemia.
The exact type of cancer or any systemic disease caused by swollen gums needs to be clarified by a thorough examination at the relevant hospital department.