The short answer is yes. In some situations a toothache or tooth sensitivity can come and go. If this happens it’s probably a reversible inflammatory response by your tooth. Your relief may be short lived though.
Only after a dentist has made a proper diagnosis about the cause of your pain can you potentially avoid further damage and find a permanent pain solution.