STM32F405 Setting Clock Freq Less than Max 168 MHz
Any frequency is allowed, CubeMX won't allow illegal values. However if you use a peripheral that needs the 48Hz clock then than must be set correctly too. What may be important is the input range to PLL, with some  values there is less jitter. Read the data sheet about PLL input.