Trying to move my save path to OneDrive is it possible

I recently set all of my Winodws devices to use folders I set up on my OneDrive for both Save and State files and this is working great I have one Android phone I was trying to add also but I don’t know if OneDrive stores files locally on the device or only in the cloud does anyone know if this is possible or if I can set a local directory and then get that to sync with my OneDrive I’ve googled looking for answers but can’t really find any good results.