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

In a small number of horses, muscle weakness may progress to paralysis.

The weakness of the span was overlooked until it collapsed.
different meanings