Disabling ajax code that does a POST request that ends in a 400 error code

This depends on a lot of factors. The short answer, yes you should remove it as request still needs to be served and this might become problematic at scale. Besides you are slowing down your server without need, and could even block some other request depending on how this was coded.