Will these devices compatible with each other?

SPI is not the TX and RX pins, that is the serial interface.
So yes you can use the SD module without the TX and RX but you cannot use the SD module without the SPI interface and that is also required by the compass.