Retirement tax questions

To confirm, if someone graduates college after having spent 5 months plus as a full time student and then goes straight into a job that allows him to immediately start investing toward retirement, the fact that he was a full-time student the same year bars him from taking any tax credit from the retirement contributions?