Can you replace a set neck on a guitar?

Replacing a set neck is difficult and expensive. You would have to determine whether the neck absolutely needs to be replaced. It should be done by a professional and you would need to compare the cost of the repair with the cost of replacing the guitar.