In some laptops the power socket is connected to the motherboard via a flying lead, and the socket and flying lead may be available as a spare part. In others, it's soldered directly to the motherboard, in which case obtaining and fitting a replacement may be harder.