Yes, gelatin helps the cheesecake layer solidify and firm up. I have not tested it with agar but this would make it vegetarian.