Can a student contribute to an invention?

Yes, a student can even be the sole contributor or inventor. The ownership of an invention developed with or by a student depends on 1) whether the invention was created by a student in a capacity as a Yale employee and 2) whether the invention was created using Yale resources. The Yale owns, at least in part, any invention created by a student employee with Yale resources.