If there’s one truism when it comes to your money, it’d be not to let your emotions get the best of you: You don’t want to sell when the market’s tanking, splurge on something you can’t afford when you’re in a bad mood, or continually give money to a loved one with no strings attached.

But giving into your emotions can actually be a boon to your finances in the right circumstances. Here’s why.