unit – Can I add a required component dynamically with AddComponent ()

I add components of a generic type to a prefabrically dynamic one. But sometimes, a component requires another component. Generally, these are Unity-specific components, so I can not add the required component attribute. Is it possible to dynamically add the required component without getting debugging that requires a component?