Should I setup ofSoundStream with the same sampleRate as the operating system?

Hi, I wonder if my operating system uses 96000 sampling rate, should I setup ofSoundStream with 96000 too in order to make the sound be played properly?
Or can it be just fixed to 44100 and will it always sound the same regardless of the system’s sampling rate? (I mean pitch-wise, not quality-wise)

soundStream.setup(this, 2, 0, 96000, bufferSize, 4);

If they should always be equal, Is there a way to detect system’s current sampling rate?