Possibility of assuming multiple IAM roles in a single apply

Sort of an architectural noob as far as setting up Terraform project structure, but is there a way to assume more than one IAM role so that different sections of the Terraform apply are executed by different IAM roles in different accounts? I know you can pass in the assume role value in the provider, and subsequently have different roles associated with some resource, but mainly asking from a pipeline execution type of perspective.

As an example assuming I already have a role in a separate account and I want to assume the role in the other account and trigger provision, before assuming a role in a different account which I also have permissions to assume.