It depends. Some systems will have a partition for a system restore and some will have you create media to restore it. If it does have a partition and you wipe it out, you may find yourself paying for recovery media from the manufacturer.
A couple of different options
- Install a hyper visor and install Ubuntu as a VM
- Clone the entire disk and use that a backup media
- Install the WSL and Ubuntu via the Windows store and you can run most Linux binaries with GUI supporting coming as well