Yes, you can adapt this recipe to be dairy-free and/or gluten-free. Substitute the milk with a non-dairy alternative, such as almond or oat. Use gluten-free cookies or wafers instead of traditional vanilla wafers.