I purchased InDesign 4 several years ago. I am ready to upgrade computers and I was wondering if it would work with Yosemite or will I have to upgrade to a newer version of InDesign?
It's not supported on Yosemite. You're totally on your own. It might work (if you do a clean install) and you use a new copy of the CS4 installer, but it might not:
Download CS4 products
Retrieving data ...