Has anyone ever served as both U.S. President and Chief Justice of U.S. Supreme Court?

Has anyone ever served as both U.S. President and Chief Justice of U.S. Supreme Court?