The repercussions of depositing a forged check, even inadvertently, can be severe.
At a minimum, you may be obligated to refund the whole amount of the check.
While bank regulations and state laws differ, you may be required to reimburse the bank the full amount of the bogus check you cashed or put into your account.