you mean I can, reprogram GPIO to change SPI pins to manage what I want to do, just I have a question, is it possible I just remap MISO pin and rest pins remain as before?
Yes you can by updating the GPIOx->MODER as appropriate. The only caveat is that you'll be writing the whole 32-bit register. So you have to read the value, update the bits you want to change then write it back.
// with port as GPIOx
// bit as whichever bit it is 0 to 15
// mode as 0 for input, 1 for output (recommended), 2 to restore alt-function
unsigned long mask2 = ~(3ul << (2 * bit));
port->MODER = (port->MODER & mask2) | (((3 & (unsigned long)mode)) << (2 * bit));
If you have multiple threads or interrupts that might touch the same MODER then you will have to manage access to it yourself.
(Edit: Corrected allowed range for bit number in code snippet)