It's not wrong. Whether it's necessary or not depends on context.

Student or Learner
Hello.
This is my sentence.
"He is about forty years old." Isn't "years old" unnecessary and wrong?
It's not wrong. Whether it's necessary or not depends on context.
Not a professional teacher
It's fine either way.
I am not a teacher.