This sacrifice of a pawn nowadays is only played for drawing purposes. Especially against the very strongest masters it has proved to be quite useful to this end.
Chess is and will always be a game of chance.