Generally speaking, a submarine cannot typically outrun an enemy torpedo outright, but submarines do use speed in other ways to avoid fatal hits.