It all depends on the condition of your hair and whether you have dyed it before. Of course, if the hair is damaged and weak, it is better to postpone coloring until it is recovered. Sometimes only the ends of the hair are damaged.
It would be inappropriate to postpone the dying process just because of this. For this purpose, it is possible to use different types of dye on different areas of hair, or simply to get a haircut before coloring. It is always better to consult with your hairstylist, they will determine the level of damage, and provide professional advice for your hair type.