It is not recommended to make any changes to the core modules as it may cause disruptions to the entire application. Once you face any issues after making the changes, there would be little help from the developers and the Drupal community. So, it is advised not to change any of the Drupal core files.