Yes, if he had the right values. However, I think it's extremely improbable that an atheist would have the right values.
I would never knowingly vote for an atheist because they would not have the right values. My values come from God.