If your vehicle has Autonomous Emergency Braking (AEB) and you're pressing and holding the accelerator pedal, whether AEB activates depends on the design and programming of your specific vehicle’s safety systems.
In most modern vehicles: AEB is designed to override driver input in critical situations.
So yes, in many vehicles, AEB will still activate even if you are pressing the accelerator—especially in an imminent collision scenario.