Is the word "work" used in the same way in the following two sentences?

I will work hard to improve my grades.

John worked with Paul at finishing the task.
the same meaning