The connection to DB-9 pins 2 and 3 depends on the device plugged into the other end of the cable, that is if it's wired as a DTE or DCE device. Also DB-9 are often plugged into true RS-232 devices and the voltage levels used +/- 3-15vdc can destroy the mega pins from either over voltage or negative voltage. So a definitive answers needs further information.