Is PUSCH and UCI and encoded separately in 5G Uplink?

Hello Experts.

In 5G NR the UCI in Uplink can be multiplexed on PUSCH.

Does anyone know if PUSCH and UCI and encoded separately?
Or mixed together?

UCI and ULSCH encoded separately before UCI getting multiplexed on PUSCH.