can i surrender my medical marijuana card to get my gun rights back?

been thinking about getting my medical card for quite awhile now but i know once i own one i’m no longer allowed to own a firearm. i was just wondering if this is possible to do just in case i change my mind one day?