As long as the model mac you have can update to the latest OS then you will be fine and should loose no data, however we come back to this. Firstly.
Find out you mac model, every kind (release) has its own unique number. Mine starts with the letter A.
Check on the apple website if your mac is...