Really depends on the environment. Low light and nighttime are much worse than you might think, anything else isn't so bad.
(Try taking a photo of the moon with an iPhone. You can't do it, not even with Halide.)
The lenses are also different and direct lighting can cause annoying internal reflections. I don't know this area as well, but lenses are more important than sensors for photos.
You absolutely can:
https://mastodon.social/@heliographe_studio/1156653713048409...
(taken with BayerCam.app, not Halide, but Halide can capture the same raw Bayer data)
It's not an amazing photo by any means. But it is a photograph of the moon - the seas are all well delineated, Copernicus/Kepler/Aristarchus/Grimaldi are visible/recognizable.
A test that smartphones did not pass a few years ago.