Yes, but there's a fine line to draw here as a GM: as a theoretical extreme, if I intervened every time I thought their PC would "definitely know this" or "would never do this", then I start to play the PC more than they do.
Or put differently: that disconnect between player knowledge/actions and PC knowledge/actions is unavoidable to some degree. How much of it is tolerated/expected pretty much depends on your goals/playstile/desires on the group. Some players really care about "playing the PC right" and others really just see them as a puppet to control (in which case they can't "play them wrong").