Sometimes it is worth to address a possible issue before it happens. Security, savings, taking care of your own health.
Sometimes it is a waste of time. Making perfect software architecture, perfect API for a prototype.
We cannot solve all the problems and not all problems are critical to address before they happen.