Sure, that’s why sugar is added, but it doesn’t have to be. The point is to remove free water (water that bacteria can use, I don’t know the English expression for that), and you can do that by:
1. adding more sugar
2. cooking it for a longer time
3. adding pectin (either store-bought or from natural sources)
Of course it depends on the kind of fruit, but it’s quite rare to have more sugar than fruit, even without pectin or longer cooking time.