Does "work" mean the same thing in these two sentences?

I will work hard to improve my grades.

They worked on the task.
the same meaning