Hello,
Yes depression can definitely do that as it fills the person with hopelessness, helplessness and worthless. Hence even if something good is going in life depressed person focuses on negative thoughts due to imbalance of neurotransmitters mainly serotonin.
Next Steps
Consult a psychiatrist
Health Tips
Start medication as they will help in balancing your neurotransmitters and lead to positive thoughts