To hit the nail on the head is to do something in the most effective and efficient way, which is what he did when he made that statement.
Consider the statement "Man, he was pretty accurate and on point when he said that.". Based on this "Man, he hit the nail on the head pretty close there." a true statement? Yes, no, or I don't know?