Yes, but it stops with a StopIteration exception instead of not returning more results and directly indexing is orders of magnitude slower.