Hallo Muweeball10
Note that it won’t be a single train all the way, and you can’t reserve seats on the last Visp-Zermatt train. (There’s one single reserved seat on this one located at the very front of the train though… for the driver)
But don’t worry, the majority of passengers on that train are visitors staying overnight in Zermatt, where no public road access exists. MGB, the operator of that railway line, have gained some experience with this situation since operations began back in 1891.