Yes, but it's a pity all the same anyway for Buckmaster, her captain. He only failed in that he cared so much for his crew that he wouldn't take the risk of having her capsize on them.
It somewhat ended his combat career - sad story, really.
By the way, if some of you are interested in getting to know Yorktown better (arguably my preferred carrier - probably because she featured all the way into the first two albums of the French-Belgian comics Buck Danny, and I was 7...) don't hesitate to head over there listen to the touching testimony of this gentleman. Blessed be the audio archives.
https://www.ww2online.org/view/william-roy