I don't believe C4 can be used as propellant charge material as it's a type of high explosive, but there are less energetic propellant charges available now. So yeah, what you propose does have its merits. But where's the need for that when you can simply go with an unmanned turret??