@augi Welcome to the forums.

You can, but it would mean remounting the root filesystem read/write, modifying your /etc/hosts file and then remounting the root filesystem read-only again.

Also your changes might be overwritten / reverted when you update the OS via the Settings (never use apt unless you know what you are doing)

The uAddBlock app in the OpenStore works in this way.