To answer your question directly. Yes, you can. Apple has compatibility information here: http://support.apple.com/kb/ht5634
If you where wondering how (which seems like a better question, but anyways), you can follow one of these tutorials: https://discussions.apple.com/thread/4211110