When in Microsoft O365, versioning can be turned on by default.
When you create new OneDriveForBusiness libraries, and it will automatically save the last 500 versions of a document. This will help you prevent losing important documents or data.
If you have existing libraries on your OneDriveForBusiness site or on your team site that do not have versioning enabled, you can turn versioning on for them at any time.