If you define pixel art as just a vague overall look, then yes, it can do pixel art. If you define pixel art as being limited to a fixed color palette, like 16 or 256 colors and aligned to a square grid, then no, not without some manual post-processing.
It's not helped by the fact that a lot of people who are not artistically inclined will generate pixel art on these image generators at 1MP resolutions (far higher than traditional pixel art), such that even the casual observer can typically see the bad smearing and fringing in the final result.