As long as the chain doesn't break.
It doesn't end the chain, but it does reset your chances of running into a shiny Pokemon back to the minimum.
Source: Experience and here