Feel feelings caused by negative thoughts or change thoughts?

Hi, I need clarification on when to feel your feelings and when to change your thoughts. I find myself with many negative thoughts that are causing negative emotions. If the thoughts are not serving me and I want to change them, is it still helpful to process the emotions caused by these thoughts before focusing on a more intentional thought?