I think this is what your asking. Can you attach 2 hats that use pin 21 (I assume you mean SPI0 MISO pin)
First you need to understand how SPI communication protocol works here's a good place to start
https://learn.sparkfun.com/tutorials/se ... erface-spi
basically you can all multi SPI slave devices on to the 1 master SPI bus but each SPI device has tp have a different CS line to tell it that this coms is for it and that is what the pins 24 and 26 do.
So each hat will have the same MOSI, MISO and SCLK pins but it will have different CS pins then in the software that coms with the Hat you need to tell it which CS pin your using