yes, technically that is possible, but it would give you an image with... big square blocks instead of tiny pixels.
I'm thinking of achieving something like https://github.com/nestoris/win98wallpapers, and maybe Midjourney's img2img (as the other commenter suggested) might be able to do something like that, I don't know.