No, you can learn the IIT Madras courses online but you wouldn’t be allowed to stay on campus whilst pursuing these courses.