SWD Signals multiplexing
Yes it's possible to remap the jtag/swd pins. If you are using the stm half it's:

GPIO_PinRemapConfig(GPIO_Remap_SWJ_Disable, ENABLE);


If not you need to look for the correct registers in the datasheet.

Be careful to implement a fallback scenario to reenable the swd/jtag pins or to use another update mechanism. This to be able to update the software afterwards.

The swd/jtag port is not usable after the remap.