Is it good to use 'SDL_PollEvent' in addition to 'SDL_PumpEvents'

I’m asking this because I saw someone say on another forum that it wasn’t good but I personally don’t see how to handle window closing with ‘SDL_PumpEvents’.

My execution loop roughly looks like this:

while(running)
{
    while (SDL_PollEvent(&event))
    {
        running = event.type != SDL_QUIT;
    }

    SDL_PumpEvents();

    [...]
}

SDL_PollEvent() calls SDL_PumpEvents() so there’s no need to do it yourself.