If you were arrested in New York City, you will arraigned within approximately 24 hours of your arrest. You should try to retain an attorney by then. The arraignment is primarily to advise you of your rights and enter a plea of not guilty.
At your arraignment, if you have no prior warrant record, and strong ties to the community you may be released without bail.If you are charged with a felony or are otherwise considered a flight risk, the court may require bail.
It is advisable to not resolve a case at arraignment because you may not be fully aware of the impacts of a guilty plea until you have spoken at length with an attorney.