If the two switch connected through direct UTP cable then if one end goes down the other should go down also.
If media converted is used (because of fiber connection) then some converters turn of their Ethernet if the fiber link down and some do not. That's where you can benefit from UDLD. You can enable it on cooper ports as well.
Please take a look at this link for more info about UDLD:
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: