This ancient old principle can be applied in any way, shape or form. Like most principles, is the thing itself not that important, but the principle is. Whatever the thing is you want to be good at, you need to consider the value of adopting a long term vision.
Excellence is an art won by training and habituation. We do not act rightly because we have virtue or excellence, but we rather have those because we have acted rightly. We are what we repeatedly do. Excellence, then, is not an act but a habit. – Aristotle