Short answer– yes.
I just did a test that worked with three domains–
on domain A, I had an iframe pointing to a file on domain B. Domain B’s iframe was to: alert “location.href”, write it to the document, and then redirect the browser to domain C.
All tests worked.