Indeed. In fact this criticism of JTB is known as the Gettier problem: https://iep.utm.edu/gettier/