Arduino Nano - SPI header and D* pins

so basically I either can use header or D* pins for SPI. If D* pins are used for other things, I can't use SPI