you should be able to do it, the M2 range allow use of the serial pins for general use, i have used both serial in and out on my 8 and 14 pin M2 chips as gp input/output.
how do you have the circuit connected? if you have the relay directly connected to the pin then that probably wont work assuming the relay coil needs more current to engage and the pins can only source around 20ma each, if you have a direct connection to the relay then you would need to use a transistor to be able to switch the higher current the coil would need to fully energise and latch.
what are the specs of the relay,coil current and required voltage for the coil?