Yes, you can adapt this cupcake recipe to be gluten-free or vegan by using the correct flour substitutes and non-dairy ingredients like vegan butter and almond milk. Keep in mind the texture and flavor may change slightly.