Not necessarily, ghosting occurs if the keyboard uses a switching input configuration and keys are pressed which generate the same output on a matrix. Mechanical and non-mechanical have nothing to do with ghosting, it's simply the switch used in the actual key press.