Prudent, suggests separation of all handgun and rifle compounds, as much as possible. I own 12 or more lockable storage units. Some stack on style, some UL rated jewelry store safes. I personally store very little ammo and firearms together. I have an ammo safe, where the outer wall is 1" thick tool resistant steel, on all 6 sides. I store no guns in this safe. Likewise, my main gun safe, again, UL listed, has no ammo in it.
Can you store it all in one place? Sure, but which is better?