After indictment, the sheriff, upon executing the capias or writ of arrest, may take bail from the defendant for the defendant's appearance to answer the charge.