Only some pins can be remapped. Specifically which pins are available in the GPIO and AFIO sections of the stm32 reference manual. Generally, the pins of digital systems such as timers, communication interfaces can be remapped, ADCs, Dacs, and clocks that are related to analog quantities can not be.