Most likely, no. Trifle often has a layer of angel food or another type of cake, which 99% of the time is not gluten-free. Swap the all-purpose flour with a gluten-free version to make trifle GF-friendly.