No matter what, when you are arrested, you are still presumed innocent until proven guilty. The “proven guilty” part occurs in court (or not guilty), which happens of course, after you are arrested. Because of this, you cannot be punished by sitting in jail forever...