Cancel at the source tech definitely exists, but it generally works best for repetitive predictable noise (same with noise cancelling in general)
Here's an example: https://www.silentium.com/technology-2/quiet-at-the-source/
Here's an example: https://www.silentium.com/technology-2/quiet-at-the-source/