Yes, Trump can run for president if he's indicted, but winning is a different story
There is nothing in the Constitution prohibiting people with criminal records from running for president, but voters historically turn on candidates with legal challenges.