Can I add a 30 amp breaker to a sub panel being fed from a 50 amp breaker
Assuming you've got 6 gauge wire feeding the sub panel, you should be fine. As long as you aren't pulling more than 50 amps through that sub panel at once, you don't need to worry about over loading the panel. That's what the 50 amp breaker is there for.