can the president be in jail and still keep his job?

No, if the President of the United States is in jail, they would not be able to continue their duties and would typically be removed from office. In such a situation, the Vice President would typically assume the role of the President.