Advancement for flying with explosive firework

So I'm trying to make an advancement for flying with an explosive firework and had a question. Do functions called from an advancement run as player the advancement is checking for?
Continue to help post