Should I add sign up after onboarding (customisation) or before?

I am creating UI for a recipe app. I want to include customisation. Asking questions about diet, allergies and time available for preparation.
Should I include login/sign up before or after this onboarding
process?
Is there a way to save …