The Pharisees were deeply devoted to the Scriptures and earnestly desired a righteous life. They also believed in the coming Messiah, which explains their questions here.
Some Pharisees became followers of Jesus, including the apostle Paul (Acts 15:5; 26:5; Philippians 3:5).