Hello @Sriman Dhanvi
Before you update its always recommended to keep your important files as backup, however upgrading from windows 10 to windows 11 will not erase anything unless you uncheck "Keep personal files and apps during Windows Setup".
Visit the below discussion and go through the links mentioned in comments to know more about windows 11 updates.
Hope this helps.
---------
--If the reply is helpful, please Upvote and Accept as answer--