It's more likely that the fridge has lost its refrigerant. Is this true? It's not a good idea to pay half the cost of a new fridge to resurrect an old one. The manufacturer's warranty sometimes covers the repair. Financially, it makes sense to replace a compressor at that time.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.