Will upgrading my Mac result in the loss of my data?
Normally, nothing untoward will happen.  

However, nothing is 100% certain, ever.  

Backups are a necessary part of life. You really, really should always have at least one, preferably two; one being off-site.