Yes. To change a master page, set the MasterPageFile property to point to the .master page during the PreInit page event.