In Season 2, Episode 13 when it accidentally gets out that Jim has a crush on Pam, he tries to explain it away by stating he used to, when she first started before he knew she was engaged. However, later on, in Season 4, Jim tells Pam he knew he liked her the moment she led him to his desk on his first day.