Cnc shield with esp32 and tmc2208

saw that as4988 and tmc2208 almost same pins, can you use these on cnc shield like this

If the shield accept those drivers is the question. The board pins have to be regarded, not the as4988 pins.