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

The two stories don't agree in many details.

They agreed with her how to do it.
different meanings