Of course, and to the extent technically possible. Modern AIs can do pretty much anything as long as there is a clear objective function, and the binary size is absolutely one of them. The problem is just that it is not a commonly asked objective.
Check out os8088, a Mac-like operating system for the original IBM PC that comes with a lot of apps for it. AFAICT everything is vibecoded using Claude, Codex, etc and pretty much all apps are very tiny (a few KB).