Yes, site speed is a ranking factor for mobile devices (since 2018) and desktops (since 2010).