Only if they implement steam cloud saves. Its not automatic.
It really is one of the main reasons to do a Steam release. Seamlessly playing your savegames and save states on desktop PC over to Steam Deck and back again made RetroArch one of the killer Deck apps IMO.