STM32F1 -bootpin resistors
It is completely safe to connect the way you have planned.

Boot 0 is input pin of the micro controller. It can be connected to 3.3V directly. When 3.3 V is not available then BOOT0 pin will see low via 10kOhms..when connected BOOT0 pin will sure see a digital high input.



Optional: Place a 300 ohms series resistor to the input of Boot0 pin. 

Edit 1:
Removed wrong reference



Edit 2: from Nucleo-F429ZI
Similar one..just for reference.