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

Analyze the evidence in a criminal trial.

The inspector analyzed the building for its soundness.
the same meaning