PHP has short-circuit evaluation, such that y in if x and y is only evaluated if x is true. It seems likely that Twig, being built on PHP, would as well. Does it?
Edit: appreciate the "almost certainly the case for Twig" comments. Would love to hear from someone who can speak with certainty about Twig