Yes, you can replace a moulded plug. Measure 50 millimeters from the end of the cable before you cut the plug. You don't want to damage the wires inside when you cut the cable.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.