After an indictment has been returned by the grand jury, the court may order any defendant who is present and who has not been arrested to be taken into custody without process. When the defendant has given bail prior to the return of an indictment against him for a capital offense, the court may, in its discretion, likewise order him into custody.