The best bet is to go see your local doctor and get a medical professional to look at your sore.
Usually, they advise you go see the doc / dentist if a mouth sore is around for over 2 weeks and does not go away in which case, I would wait and see rather than jumping to different conclusions!
As per above, make sure to go see a medical professional as everyone is different and only a medical professional will be able to provide you the correct diagnosis.