Only for those who cannot afford to post bail, or are such a risk they are denied bail.  Otherwise it is a violation of the 5th and 14th Amendments.  In America, one innocent until proven guilty in a court of cmptent jurisdiction.