No, the numerical solution does not exactly equal the analytical solution but serves as an approximation.  The approximation can be very accurate when the numerical method is designed properly.