I'm assuming you're talking about a 2009 13" MacBook as you mentioned an optical drive rather than an 11" MacBook Air. If so, yes you can repair all those components, however it probably wouldn't be worth it at this point. The 2009 computers are taking a dive in value, I'd save that money and put it towards a newer computer.