I can't determine which iMac you have but hard drives (which size is in that model?) are usually under 99 bucks so it may be salvageable. But some models are tough for folk to get into and replace the HDD.
It's your choice. My thoughts if you don't fix it yourself, you can find ready to use machines (even apples) for less than what a shop repair may cost.