Yes, it can easily be done and the detachable magazines are readily available.
However, the bolt must be back to remove or insert a detachable magazine. In my opinion, it's not worth the trouble. Just stay with the fixed mag and get lots of stripper clips; it just works better in my opionion.
Also, it might be good to check on any legalities, depending on where you live.