Really sorry to hear your news....I’m sure one of professional medics will be along in a minute but in the meantime, with the really important caveat that every case of cancer is different, I (and I am sure others) can testify it is certainly possible post some cancers to get your medical (EASA in my case) and your career back on track..but as you possibly realise it won’t be a fast fix so be ready for a long haul.
Best wishes.
wiggy.