Yes peppermint oil is great for relieving sore throats as well as many other essential oils.
To get rid of a sore throat using peppermint oil you'll need a diffuser to place the essential oil in and then you breath it in through the air to relive the sore throat.
You can also add a little peppermint oil to your chest or even the outside of your throat to relieve the sore throat.