What's the best use of component, can we write the business logic inside the component?

I am new to yii2 and just want to understand, how to use component efficiently. Can we write business logic in-side the component.

e.g.

Reading the jobs from DB and doing some processing with respect to the jobs and updating the status again.

You can write business logic inside of the component but usually it’s not really suitable to do so and business logic stays in plain PHP classes not connected with framework in any way.

Thanks Samdark