It depends on the rules and regulations of your school. Some schools are very strict, not to mention failing the make-up exam twice, and failing the CET-4 may not necessarily give you a degree certificate and diploma. However, some schools are more relaxed, as long as the final defense is completed, and both degree certificates and graduation certificates can be used. Other schools will organize make-up exams before graduation, so that all students' transcripts can pass, and then issue degree certificates and diplomas.
So you should consult the academic affairs office of your school or your counselor. But the academic affairs office should know the situation best.