No, installing Rockbox doesn't erase anything (it doesn't touch anything on the second partition - where the music/data is stored).
The only changes are made to the boot partition.
As with anything, there is always a small chance of something bad happening. IMO the best practise is to always have a backup.