Welcome to the forums,
that I am afraid is the wrong question, as GNU Linux is so designed to run on almost anything,
the question should be can I install Linux on an old Imac, and the answer is yes, but you may be limited to what distributions you can install by what the specification of your machine is.
You can find information by using the search facility for "Linux on Imac" and "install linux on mac"