I use SWD for load firmware in stm32 chip and debugging. It uses 3 pins: `SWCLK(TCK)`, `SWDIO(TMS)` and `GND`.

Can I use other JTAG pins, that not used in SWD interface:
(`TDI, TDO, TRST`) 
for own purposes while preserving the possibility of flashing firmware in chip?