Yes, You should visit a dentist. Pain killer will help you to get relief temporary. Dentist will check and find the cause of pain. Carious tooth is treated with root canal treatment. If tooth condition is worst then it is difficult to save . In that case extraction is advisable which is followed by dental implant.