No. You can't modify read-only files.
You can only modify files that you create and commit to your project's git repository.
To modify your own files during runtime, you can either configure a writable Mount and upload the file there, or modify the file during build time by configuring a Build Hook.