Why not? There are active noise cancellation systems for airplanes and cars where the distance between the speaker and the ear is much greater than in this case.
The main caveat to active noise cancellation is that you cannot construct a destructive interference pattern that cancels the noise everywhere. Creating destructive interference to cancel out the noise at your ears will unavoidably mean creating constructive interference somewhere else.