We report a systematic study of the structural and quasi-static magnetic properties, as well as of the dynamic magnetic response through MI effect, in Co2FeAl and MgO//Co2FeAl single layers and a MgO//Co2FeAl/Ag/Co2FeAl trilayered film, all grown onto an amorphous substrate. We present a new route to induce the crystalline structure in the Co2FeAl alloy and verify that changes in the structural phase of this material leads to remarkable modifications of the magnetic anisotropy and, consequently, dynamic magnetic behavior. Considering the electrical and magnetic properties of the Co2FeAl, our results open new possibilities for technological applications of this full-Heusler alloy in rigid and flexible spintronic devices.