Is the transmission compatible

I have a 2003 2.4 L Mitsubishi Eclipse with a bad manual transmission and the only transmission I could find in my erea is a 3.0L .Could I use a 3.0L transmission?