Yes, it's a good habit to be ready for anything in advance and have supplies not only in money, but in the form of food, things, at home in nature. This kit also includes a variety of knowledge that can be useful in an emergency.
But the best and most generalizing habit is when you try to always use common sense. In this case, no matter what happens, you will always do everything in the best way. All other good habits come from this habit.