Honestly, it seems to me like you are asking whether it is possible to stop the prosecution of a person whom you first looked at as a thief, and now know is a close friend or family member. It isn't clear how the check became deposited in the other person's bank acct.
My recommendation is that both of you go to a criminal defense attorney and try to determine options.
The above is not intended to be legal advice, but may be used for general information. Please contact an attorney for specific help tailored to your needs. www.figgardenlaw.com