If you are charged, they will likely arrest you.
You would be jailed waiting for trial
, but the court
would likely set bail.
Your first court hearing would be called the "arraignment" where you would be formally charged (provided notice of the charge(s) you face)
If you can afford an attorney, good idea to hire one for the arraignment so they can help set the trial schedule.
If you can not afford an attorney the court will provide one for you
The judge at the arraignment will set dates for your actual trial, typically several months in the future.
You would be allowed to view the evidence the government has against you, and prepare (with your lawyer) your defense case.
If you are convicted at trial or plea guilty, it is likely you would go to jail for some period of time and then be required to register as a sex offender after you are released.
Please let me know if you have more questions. I am happy to help if I can. Otherwise, please rate the answer so I may get credit for my work.