Only if you use yield in an expression context (e.g. on the right side of an var assignment).