Yes, you can substitute gelatin with agar-agar, which is a plant-based alternative. However, agar-agar sets more firmly than gelatin, so you may need to adjust the amount and follow the instructions carefully. If you want a softer texture, reduce the amount of agar-agar slightly. Additionally, agar-agar sets at room temperature, so make sure to work quickly while mixing it with the cheesecake filling.