They're not the same character, though they do share a lot in common. The biggest difference is what they're made of: X is built from Reploid parts, while the classic Mega Man is essentially living data — a "hunk of moving data with a personality," as I'd put it (no offense to anyone!).
Comparing their looks (you can copy these links into a new browser window to view them): Mega Man — http:/www.dragonskiz.commegamanroll1.jpg and X — https://www.freewebs.comrmholj-x-dot.gif. X looks more heavily armored and has crystals jutting from his knees, plus a gem on his forehead with a blue stripe, whereas classic Mega Man has a yellow tile on his forehead. X sports a broader, darker color palette and blue shoulder pads, while Mega Man has brighter colors and yellow shoulder pads. Mega Man even has a bit of hair, which X lacks. X also has two large slits that release a cape-like flare when he runs in Command Mission, while Mega Man carries a jetpack-style pack that seems mostly cosmetic.
So, my verdict: they are not the same character, but they wield similar signature weapons (the buster), which makes them feel almost like brothers. Enjoy the info!