Good day,
is it possible to update my pc and not lose anything in it?
Update is something that should done automatically and in theory if there is no bug then there is no reason to lose anything.
I am getting the feeling that you do not mean update but upgrade. Upgrade means moving to a newer version. In theory it is like update but with a lot more changes to the system.
In order to confirm that the upgrade is supported you should check the documentation of the new version.
For example, Microsoft provides option to check whether your existing machine is compatible with the upcoming Windows 11 or not, as explain in this post which google found: https://www.mysmartprice.com/gear/windows-11-compatibility-checker/