JFK set a goal that NASA managed to meet, but it is kind of difficult to see it as a hard deadline considering JFK was dead for years before any of the Apollo launches took place.
But even assuming we do view it as a deadline, the Apollo 1 losses are a pretty good argument that maybe we shouldn't repeat that.