Yeah, the courts don't even have to involved. All you need to do is be charged, and they can revoke the passport, even if charges are later dropped.