It depends on the person. But most often rational thinking is difficult to combine with an affective, emotional state. For example, Kant concentratedly worked in solitude, formulating his postulates. He worked in the same room, with the same view from the window. Schopenhauer worked very similarly. No emotional distractions from cognitive processes. It is known that Isaac Newton once, thinking, cooked his pocket watch instead of an egg, which he thoughtfully held in his hand. On the other hand, American psychologist D. Goleman stressed that emotional intelligence plays an important role in the development of cognitive abilities of the individual.
Please, draw a conclusion from my answers themselves. All the best.