Yes, as long as the URL of the main page is the same as the URL of the iframe (i.e., the iframe source is loaded from the same domain).