Correct- "he" and "I" are subjects, "him" and "me" are objects. Simple enough in theory, confusing when you are speaking.