I don't remember, because it's a long time since I saw the movies. Is there ever made any reference to Anakin being the Chosen One, in front of him, in the films? Or is it always said while he is away? If yes, well, then, yes. If no, are we to assume he knew anyway?