I will say I have not looked at Yale’s website so it is very possible they could have changed their requirements (also why I said if someone has more recent knowledge I am willing to be corrected).
My spousal unit has a degree from Yale from waaaay back in the day

He was an academic for 40 years (at another university) but as a result retained knowledge of students applying to Yale as transfers and from Yale as grad students.
*In the past* online course modules have not been available for undergrads. The reasoning is this: part of the reason for attending Yale is not just the classes, but the entire experience. You are meeting and mingling with the best and the brightest, with future world leaders. Spousal unit attended college with, for example, George W. Bush, Olympic gold and silver medalist Frank Shorter, cartoonist Garry Trudeau (not that he knows any of those people to talk to now

). If you allow online courses to meet degree requirements, you are depriving Nathan of the chance to meet and learn from his peers, and depriving them of the chance to meet and learn from Nathan.
At least that was the ideal, not just of Yale, but of all the Ivies. I rather approved of it, so I hope it hasn’t changed....