Hi!
Yes you actually can! They are the same size and will fit. There are plenty of tests done and it does fit and work.
Unfortunately, the cable came out the connector completely… so the speaker need to be replaced completely. The speakers aren’t that expensive, so you should be good to go. The connector on the motherboard, is still fine, right? If yes, then just replace the speaker!