If a candidate running to be the President of the United States is indicted during his campaign, can he continue running for election?

If someone running to be the President of the United States is indicted, this person still can run for election no matter when he was indicted.