You asked

Can I adapt the canon ef s 35mm f 2 8 macro is stm to canon rf?

The guide doesn't cover adapting this lens, so it can't say whether an EF-to-RF adapter would work with the Canon EF-S 35mm f/2.8 Macro IS STM. That page lists it only for Canon EF mounts and for APS-C cameras, and none of the cameras it fits are RF bodies. Adapter compatibility, including whether an APS-C RF body would work with it, is outside what this site covers, so check that with the adapter maker or Canon before you buy.

If you want a macro lens that is native to RF, the guide points to the Canon RF 35mm f/1.8 Macro IS STM. It is made for full-frame sensors, has a wider f/1.8 maximum aperture than the EF-S lens's f/2.8, and is stabilised and autofocusing. It gives up the APS-C crop, so on a full-frame body it frames wider than the EF-S lens does on APS-C. Its page is built around full frame, so it is the simpler match if you have or plan to buy a full-frame RF body. The mount page for Canon RF lists the rest of the RF lineup.

If you already own the EF-S lens and want to keep using it, its page shows which APS-C bodies it fits, and the guide's reasoning there applies to any of them.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.