Of cause, what will help you stay invested for the long run is when you're able to Ballance everything up. Expecially in our countries where needs are too much and the finances to meeting those needs are most times not enough, it's expected to do proper planning and implement a proper disciplinary measure that will keep you balanced up with the allocation that goes into your expenses, investment and also emergency fund.
I always tell people that every planning you have to do with money must be done before it arrives and even if it has arrived, then you need to plan it before you start spending that money, so you can plan out every bit of it and allocate it to your needs and not mere wants. Believe me the moment you start spending that money void of proper planning, the tendency to mismanage it is on the high.
I would also not advise saving all funds in the same bank account, I literally have up to 4 bank accounts and they hold different funds for different purposes in order to eliminate every possibility of oversight and activate thorough precision when spending.