No, because control flow is very janky and completely tacked-on.
I considered (in all three cases) making a forked version of terraform for use in CI and for aiding control flow.
Pulumi/Terragrunt would probably have helped the specific issue you’re mentioning though.