A president can only pardon federal crimes, not state "crimes". It would take the New York governor to do that.
So what is the outcome if trump wins. Can he become potus while in jail?
https://www.cnn.com/2023/08/15/politics/could-trump-serve-pardon-president-convicted/index.html
Could Trump pardon himself if convicted in a federal case? Self-pardoning remains an open question because no president has tried it. The Constitution, though, doesn't expressly forbid it in writing. And while there was a legal memo written by the Department of Justice's Office of Legal Counsel just days before Richard Nixon's resignation in 1974 that argued a president could not self-pardon, that's a legal opinion, not law.
Trump in 2018 claimed in a social media post that he could pardon himself as president, at the time referring to the investigation by then-special counsel Robert Mueller.
So, if Trump were to be convicted before the 2024 election and win the contest, he could try to grant himself a pardon, according to Hasen.
“Whether he can do so is untested. The Supreme Court may have to weigh in,” Hasen said, adding that Trump could potentially appeal a conviction to the conservative Supreme Court.
....................
seems no one knows, its untested.