Yield until PromptGamePassPurchase is finished?

In a local script, is it okay to do:

MarketplaceService:PromptGamePassPurchase()
		
MarketplaceService.PromptGamePassPurchaseFinished:Wait()

All I’m trying to do is yield until the purchase prompt is done with, this is not where I’m handling the purchase receipt.

MarketplaceService:PromptGamePassPurchase():Wait()

this shold work