If your MacBook still falls under a warranty, yes it could be replaced at no cost - if they (Apple or wherever you bought it) accept the damage.
If you're out of warranty, you can (let) replace it too, but it will cost (I don't know how much).
Look at ifixit.com for MacBook parts.