Every time I send out a laptop for a hardware repair I always back up the data just in case the drive should be wiped, it has happened. However, it is always a good idea to take it upon yourself to back up your data. Here is a handy guide from Apple that outlines different back up protocols
https://www.apple.com/support/backup/