Multiple devices on the SPI and I2C interface's

Hi,
I’m making my own FC and looking at using the SPI and I2C interface for multiple devices.
Example 1 - On a single STM32 I2C bus have the Magnetometer, barometer, ToF sesnor on the same bus and throw a temperature sensor on there for good measure. Usual precautions of the devices have unique I2C address’s.
Example 2 - Use a single SPI bus for connecting to multiple IMU units. Obviously each IMU will require a separate CS line. Could even add a GPS with SPI interface. Again all on the one STM32 SPI port.

Can this be done?
Thanks,
Neil.