Yes, Just redeem the code in Origin. It will then be on your account whether you play on PC or Mac.
--------------------------------------------------------------------------------------- Please only PM me when asked to do so. Questions and answers belong here so everyone can benefit from them.