Sentence: Tom gave Ralph a lift to school so he wouldn't have to walk.
 Reason: The 'he' refers to ralph because Tom was driving therefore Ralph would be walking. 
 Question: Is the above reasoning correct or wrong? 