Do magazines need to be in your inventory to get their respective bonuses? [duplicate]

Once you pick them up the first time you can do whatever you wish with them. You keep the perk regardless.

Source