Be aware that most phones (including Samsung ones) without a 3.5mm audio output don't have a built in Digital Analogue Converter (DAC), so buying just any old USB C to 3.5mm socket may not work. Make sure it says it has a DAC built in.
Something like this (which I can recommend, as I have bought two of them, one for home and one in my travel bag:
KEYSION HIFI DAC หูฟัง Amplifier USB Type C to 3.5mm Headphone Jack audio adapter 32bit 384kHz Digital Decoder AUX Converter | Lazada.co.th