Oh, this could be a problem. What counts, though, is the actual disposition of the case.
I think you definitely should consult an immigration attorney asap, and have him or her work together with your criminal defense attorney on this. The goal would be to either avoid what immigration law...