Yes, if it isn't in English or Welsh. If you or your partner were married or in a civil partnership before, UKVI needs evidence that the earlier relationship has ended, and any foreign-language divorce document must come with a certified translation.
For the partner routes, UKVI has to be satisfied that any previous marriage or civil partnership of either of you has broken down permanently, and the cleanest evidence is the document that legally ended it. That applies to your partner's earlier marriage just as much as yours. A divorce certificate is rarely the star of a spouse visa translation file, but its absence gets noticed quickly.
The same translation keeps working after the visa. Settlement and citizenship applications ask about your relationship history, and a register office will want the decree before it takes notice of a new marriage. Translate it once, properly, and keep the PDF with your other civil documents.