XSS on infinite-scrolling pages

Say I make a social-media website and forget to include the htmlspecialchars() function.
If the website uses infinite scrolling (that will eventually show every post on the website if you scroll down far enough), and somebody exploits the XSS, does everyone visiting the site get the XSS attack?