I think so; if saving the User fails, then the function will not reach this point. There's no reason I'm aware of for this to depend on persistence of the UserProfile.