What's the connection between internal mental state and productivity?

Is it possible to be productive if you haven’t addressed your overall mental state?