An object with moving parts?

Hi,

I am modeling a gun and I plan to animate it.

I am planning ahead and I wonder how I should model it. Say if I want to make the trigger move, make the slide go back, and make the magazine detachable. Should I use different cubes for each part or is it fine to make it out of one?

Thanks in advance