Can one signature deposit a joint check?

If the check says you or the other person. If the check is made out to you and the other person both of you need to sign it.