Is a sentence past tense when the word sometimes is in it?

Not necessarily, but occasionally. For example, the sentences "They sometimes like to listen to the latest music" is present continuous, while the sentence "They sometimes liked to listen to the latest music" is past tense. So the word sometime does not show which tense it is and can be used in different tenses.