Likewise it works for other input audio formats including lossless like wav or flac.
If you're still on Windows, here is a filer explorer plugin that does this in one right clic: https://file-converter.io/?from=readme.md
I've been converting the MC and TFM show reddifs from MP3 to 96kbps Ogg vorbis to reduce the file size on my phone and decided to create a whole music repository that is all just Ogg files.
My music folder is 130gb in size and the Ogg only folder is a whopping 51.4gb and sounds just as good!
I recommend the following command on terminal to convert your music if saving space on your phone or media player is a big deal:
ffmpeg -n -stats -i file.mp3 -vn -codec:a libvorbis -qscale:a 2 file.ogg