Could Trump run for office if convicted and pardon himself if elected?

Could Trump run for office if convicted and pardon himself if elected?