The Mega Man X games had a lot more to them, than the original Mega Man games. However, Mega Man is a classic, and if you haven't played the original Mega Man games before I suggest you do.
I'd get Mega Man AC first, play though it and then get the Mega Man X collection.