Exclusionary rule

In the United States, the exclusionary rule is a legal rule, based on constitutional law. The rule prevents evidence collected or analyzed in violation of the defendant's constitutional rights from being used in a court of law. This may be considered an example of a prophylactic rule formulated by the judiciary in order to protect a constitutional right. The exclusionary rule may also, in some circumstances at least, be considered to follow directly from the constitutional language, such as the Fifth Amendment's command that no person ``shall be compelled in any criminal case to be a witness against himself'' and that no person ``shall be deprived of life, liberty or property without due process of law''.

Question: the exclusionary rule prohibits the prosecutor from using illegally obtained evidence during a trial
Answer: yes