For local music files, if you rate a track in a playlist, that same track in another playlist will keep the rating you set.
However, with Apple Music tracks, this does not work: rating a track in Playlist A is not persistent in Playlist B for that exact same track (while beatgrid, cues and other analyzed info are).
This is on my Prime Go+, not sure if it behaves differently on other devices.