Yes. However, you must be able to prove all of the elements of entrapment for a successful defense. The courts will evaluate both the actions of the officer and your actions. Other important factors include the severity of the crime, your responses to the officer, and all the events leading up to the crime.