Yes. Google uses page experience, including how fast your pages load, as a ranking factor. A slow site also makes visitors leave sooner. Caching, image compression and good hosting all help.