As long as it is a confession, it can be retracted in court during the trial, as long as there is no crime. The previous statement is invalid. If the court confirms that the confession was collected by illegal means, it can be overturned.
Article 52 of the Criminal Procedure Law
Judges, prosecutors and investigators must collect all kinds of evidence that can prove the guilt or innocence of criminal suspects and defendants and the seriousness of the crime in accordance with legal procedures. It is strictly forbidden to extort confessions by torture and collect evidence by threats, enticements, deception or other illegal methods, and no one may be forced to prove his guilt. It is necessary to ensure that all citizens who are related to or know the case have the conditions to provide evidence objectively and fully, and they can be hired to assist in the investigation except in special circumstances.
Article 56
The confessions of criminal suspects and defendants collected by illegal methods such as extorting confessions by torture, witness testimony and victim statements collected by illegal methods such as violence and threats should be excluded. If the collection of material evidence and documentary evidence does not conform to legal procedures and may seriously affect judicial justice, it shall be corrected or a reasonable explanation shall be made; If it cannot be corrected or a reasonable explanation cannot be given, the evidence shall be excluded.
Evidence that should be excluded during investigation, examination, prosecution and trial shall be excluded according to law and shall not be used as the basis for prosecution opinions, prosecution decisions and judgments.
I hope the above content can help you. Please consult a professional lawyer if you have any other questions.
Legal basis: Article 56 of the Criminal Procedure Law stipulates that confessions of criminal suspects and defendants collected by illegal methods such as extorting confessions by torture, witness testimony and victim statements collected by illegal methods such as violence and threats shall be excluded. If the collection of material evidence and documentary evidence does not conform to legal procedures and may seriously affect judicial justice, it shall be corrected or a reasonable explanation shall be made; If it cannot be corrected or a reasonable explanation cannot be given, the evidence shall be excluded. Evidence that should be excluded during investigation, examination, prosecution and trial shall be excluded according to law and shall not be used as the basis for prosecution opinions, prosecution decisions and judgments.