If you're talking about what they call Gentleman's aerobatics - that is only controlled positive G maneuvers like aileron rolls, barrel rolls, Immelmanns, inside loops, split-S, Cuban Eights, etc. there shouldn't be a problem here as the loading will hold your glasses on your face. For additional support you might consider a blackstrap for your eyewear, similar to what basketball players wear.
More extreme aerobatics involving negative G flight, tumbling, gyroscopic maneuvers, etc would not be recommended using free fitting corrective eyewear as they will probably come lose and can become a FOD hazard in the cockpit, in addition to losing your myopia correction. Goggles with corrective lenses would be recommended here as well as contact lenses.