Board Thread:Pokémon Help/@comment-31612400-20170502074200/@comment-28826236-20170502102100

No, sadly. Mega Evolution only activates during battle and will deactivate when the battle ends.