Using commercial component in the Joomla theme

Hi,

My theme is designed for a commercial Joomla component, if customer buy theme, they have to buy license for component, is it legal in themeforest? Is there any guide for this one?

Thank you