Ammo are picked up whether you've got the corresponding weapon in hand or not, unless ammo is full.
It's easy to validate, walk over a clip while carrying the shotgun and it will disapear (if chaingun not at 200 ammo).