Imagine the following STP topology
If PC0 was to ping PC1, all of the switches would create entries in their MAC table according to the source MAC address of the PCs associated with the corresponding interfaces.
Since ping consists of an ICMP Echo Request and Reply, the switches would have entries for both computers in their MAC address table and traffic would flow using this path from PC0 to PC1 and vice-versa.
However, what if S1's Fa0/2 interface failed? Wouldn't S2 still try to forward traffic towards S3 because of its MAC address table entry?