Yes, one of the forms is magnetic hyperthermia. You introduce magnetic nanoparticles within the tumoral cells (for instance, they have a different ph than the healthy ones) and with an external oscillating magnetic field you can change their temperature. In one temperature between 42 and 46 Cº you can kill them.
Here, you can find a paper that can help you to understand the mechanism of cancer treatment using electromagnetic field. Some nanoparticles such as gold when are exposed to electromagnetic filed, can generate heat that can kill cancer cells. Whether the heat is generated or not depends on the size of the nanoparticles as their properties vary with their size and shape.
Good luck with your research
Article Gold nanoparticles in breast cancer treatment: Promise and p...
In order to treat cancer with electromagnetic waves is at first one has to mark the cancer cells as the colleagues hinted by injecting them by gold nano particles.
The gold nanoparticles can absorb electromagnetic radiation with specific frequencies leading to heat them up to the killing temperature.
There are also trials to use the electrostatic field where the it can deflect the cancer cells in a path different from the normal cells. Once collected they can be destroyed.
I chaired a session in the conference Japan-Africa Conference Electronics, communications and computations, JAC-ECC 2018 in Egypt about a keynote speech on :CMOS lab on a chip for mass production of affordable diagnostic chips by Yehea Ismail.