If P ≠ NP, then NP-hard problems cannot be solved in polynomial time.
Note that some NP-hard optimization problems can be polynomial-time approximated up to some constant approximation ratio (in particular, those in APX) or even up to any approximation ratio (those in PTAS or FPTAS).