It's not the number of pixels that matter, it's the ability for the camera to focus onto objects that are close (macro mode).
Some cameras (and lenses) have good macro abilities, some don't.
Some cameras (and lenses) have good macro abilities, some don't.